From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Fri, 30 Nov 2007 12:05:27 +0000 Subject: [sup-talk] Email extensions/alternate emails Message-ID: <1196423833-sup-2326@tomsk> Hi - I've never quite figured out why I'd add alternate emails to my config/accounts. Last time I used them it appeared that emails coming into an alternate address used the default email address on that account to reply with - is this still the case? I ask because I'm trying to implement support for email extensions basically an email address like name-someotherid at domain.tld where -someotherid is the extension. I added an "extensions" config option that allowed me to add regexes for my extensions. I then extended account_for to return the correct account given an email that matched one of these extensions. But... what I really wanted sup to do then was what I expected it to do with alternates, is to reply to an email that came in on one of these extensions with the same email address, not with the account email address. What else do I need to do? Is it just a matter of extending the reply mode code? To do this should I have to create a dummy account/person object for the extension address to be able to use it (this seems to be the case)? Is there a better way to handle extensions? Thanks Marcus