From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Wed, 27 May 2009 19:51:06 +0100 Subject: [sup-talk] Multiple email accounts In-Reply-To: <1243440902-sup-4117@entry> References: <1243121499-sup-7569@javelin> <1243122989-sup-7769@leda> <1243275433-sup-6834@javelin> <1243440902-sup-4117@entry> Message-ID: <1243449836-sup-6622@tomsk> 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-sup at .... 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