[sup-talk] questions about reply-from & before-edit hooks and accounts
Marcus Williams
marcus-sup at bar-coded.net
Tue Jan 6 15:13:53 EST 2009
On 6.1.2009, marianne.promberger+sup-talk wrote:
> reply-from.rb:
>
> PersonManager.person_for case
> when message.recipient_email =~ /rubyforge/
> "my.name+sup-talk at gmail.com"
> end
> before-edit.rb:
>
> if header["To"] =~ /rubyforge/
> header["From"] = "Marianne <my.name+sup-talk at gmail.com>"
> end
[snip]
> Maybe I'm missing something, but ideally, I'd love to see something where I
> could define different accounts in the config.yaml, then have a way that works
> both for replying and for new mail to pick *all* settings of that account from
> config.yaml.
You might want to look through the archives for the regexen option - I
use it for this purpose (although it only solves your reply-to case).
Add something like
:regexen:
- my.name+.*@gmail.com
to your settings on an account (you can use regexes here and have more
than one if you want, but the one above will work in your case). This
allows sup to recognise your mail "aliases" and replies to incoming
mails addressed to these emails with the correct from address
automagically.
It wont help for mails you compose (ie "new" mails, not replies), but
it works well for replies.
HTH
Marcus
More information about the sup-talk
mailing list