Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Gregor Hoffleit <gregor@hoffleit.de>
To: Eric Sherman <hyperbolist@gmail.com>
Cc: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] choosing signatures
Date: Thu, 10 Jun 2010 17:52:25 +0200	[thread overview]
Message-ID: <1276184688-sup-7287@sam.mediasupervision.de> (raw)
In-Reply-To: <1275997525-sup-9347@changeling.local>

Eric,

at first, that looks like a duplication of code. Could you elaborate why
you use both of these hooks?

    Gregor


* Eric Sherman <hyperbolist@gmail.com> [Di Jun 08 13:57:54 +0200 2010]
> Excerpts from Daniel Goldin's message of Tue Jun 08 01:16:25 -0400 2010:
> > Thanks so much, works like a charm. But is there a way to change the
> > "From:" and "In-reply-to:" and "Reply-to:" headers without having to add
> > the config option ":ask_for_from: true"?
> 
> You may use the before-edit and reply-from hooks.  Here are scrubbed 
> versions of mine:
> 
> before-edit.rb:
> if header["To"] =~ /megacorp|ultramegacorp|alternacorp|minicorp|othercorp/
>   header["From"] = "me <me@ultramegacorp.com>"
> elsif header["To"] =~ /somelist|alternalist|otherlist/
>   header["From"] = "me <me@nerdylistemail.org>"
> end
> header["Bcc"] = header["From"]
> 
> reply-from.rb:
> val = case [message.recipient_email, message.to, message.cc, message.from].flatten.to_s
>       when /megacorp|ultramegacorp|alternacorp|minicorp|othercorp/ then "me <me@ultramegacorp.com>"
>       when /personal.org/ then "me <me@personal.org>"
>       when /nerdylistemail.org|somelist|alternalist|otherlist/ then "me <me@nerdylistemail.org>"
>       when /newemail/ then "me <me@newemail.com>"
>       when /oldemail/ then "me <me@newemail.com>"
>       end
> Person.from_address val
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


  parent reply	other threads:[~2010-06-10 16:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06 19:00 Daniel Goldin
2010-06-07  4:36 ` Richard Heycock
2010-06-08  5:16   ` Daniel Goldin
2010-06-08 11:57     ` Eric Sherman
2010-06-08 16:57       ` Daniel Goldin
2010-06-10 15:52       ` Gregor Hoffleit [this message]
2010-06-10 16:01         ` Eric Sherman
2010-06-10 16:08           ` Gregor Hoffleit
2010-06-10 17:02             ` Eric Sherman
2010-06-14  9:46               ` Gregor Hoffleit

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=1276184688-sup-7287@sam.mediasupervision.de \
    --to=gregor@hoffleit.de \
    --cc=hyperbolist@gmail.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