On 27.5.2009, William Morgan wrote:
> > Great, that's 99% of what I need. The last 1% is, can Sup auto-detect
> > what From line to send based on the source of the message, if the To:
> > header is not intact? (This is commonly the case for mailing lists.
> 
> You can use the reply-from hook to set it automatically however you
> want. Try adding something like the following (completely untested!) to
> ~/.sup/hooks/reply-from.rb:
[snip]

Note also that you might be able to do what you want with the regexen
options in config.yaml - so for instance Sup works out that I reply to
the sup talk mail list with marcus-...@.... It uses the envelope-to
header to figure this out I seem to remember (coupled with the regexen
settings).

So under one of my accounts I have:

 :regexen:
   - marcus-.*(at)mydomain.com

(where (at) is replaced with @, and mydomain.com is replaced with the
obvious).

This make sup recognise all incoming emails to my email extensions
that all begin with "marcus-" and unlike the :alternative: settings
are used by sup to figure out what address to reply with. Works well
for all the mailing lists I'm using.

The only problem is they dont get used for sending new addresses (but
I recently sent an email about how I get around that).

HTH

Marcus
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to