From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Tue, 06 Jan 2009 20:13:53 +0000 Subject: [sup-talk] questions about reply-from & before-edit hooks and accounts In-Reply-To: <1231252310-sup-6112@audrey> References: <1231252310-sup-6112@audrey> Message-ID: <1231272504-sup-1247@tomsk> 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 " > 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