Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: hollunder <hollunder@lavabit.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] reply-from.rb troubles
Date: Wed, 20 Jan 2010 22:50:03 +0100	[thread overview]
Message-ID: <1264023742-sup-1984@tw> (raw)
In-Reply-To: <1263760233-sup-1663@masanjin.net>

Excerpts from William Morgan's message of Sun Jan 17 21:36:01 +0100 2010:
> Reformatted excerpts from Philipp Überbacher's message of 2010-01-17:
> > Now that you say this is impossible, I had a look at my before-edit.rb
> > and suspect it to be the culprit, since it ends with:
> > else
> >   header["From"] = "Philipp Überbacher <murks@lavabit.com>"
> > end
> 
> Hah, nice catch. That would do it.
> 
> > Now how can one do both without trouble, replying sanely and using a
> > sane address for new messages?
> 
> I think the proper answer is to change reply-mode, so that any addresses
> set by the reply-* hooks overrides anything set by the before-edit hook.
> 
> In the mean time, you can probably work around this with a nasty hack: in
> before-edit hook, if the "In-reply-to" header is set, don't set the From
> address (because it is a reply, and will have been set by the reply-from
> hook).

It took me a while to get to it since I was kind of afraid of ruby, but
I tried today and it seems to work like this:

if header["In-reply-to"] = nil
        if header["To"] =~ /talk|list|lists|linux|devel|user|daw/
                header["From"] = "Philipp Überbacher <hollunder@lavabit.com>"
        else
                header["From"] = "Philipp Überbacher <murks@lavabit.com>"
        end
end

Thanks a lot. I recommended sup today on my distros mailinglist and briefly showed it to some colleagues who had never seen something like it.

Regards,
Philipp

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

      reply	other threads:[~2010-01-20 21:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 16:03 Philipp Überbacher
2010-01-15 18:41 ` Tero Tilus
2010-01-15 20:38   ` Philipp Überbacher
2010-01-16 21:38     ` Tero Tilus
2010-01-17  2:01       ` Philipp Überbacher
2010-01-17 15:24         ` William Morgan
2010-01-17 15:43           ` Philipp Überbacher
2010-01-17 16:01             ` William Morgan
2010-01-17 16:40               ` Philipp Überbacher
2010-01-17 18:30                 ` Cameron Matheson
2010-01-17 19:23                   ` Philipp Überbacher
2010-01-17 19:45                     ` William Morgan
2010-01-17 20:08                       ` Philipp Überbacher
2010-01-17 20:36                         ` William Morgan
2010-01-20 21:50                           ` hollunder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1264023742-sup-1984@tw \
    --to=hollunder@lavabit.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox