Sorry, took me some time to finally read this ;-) On Dienstag, 18. Dezember 2012 00:47:26 CEST, Jan Kundrát wrote:
> In Trojitá, the sender identities are not tied to the IMAP > [...] > a feature which picks up the correct identity when I click > "reply". > 1) Add a list of domains (or regular expressions?) for each > identity. That way, I can specify that everything which goes to > or originates from company1.com shall use identity "Company 1", > anything concerning company2.com or somefunnyproject.org shall > use "Company 2" and anything else just the default personal > ... > 2) For each recipient the user has ever sent a mail to, > remember the used identity automatically and use that in future > by default. The benefits are that this will likely fit most of > ... 1) requires pre-action, ppl. won't do that but to "fix" very particular issues (so it's rather a "nice to have" feature - see below) 2)Learns by doing but aside the "cannot write" and "will grow a long list" issues, it's likely functionally insufficient (eg. somebody might contact [email protected] as well as [email protected] from the same account but on either professional or personal topics - yet you don't want "yeah, really great tits" archieved in the company servers...) and since it requries a history will with a probability of 1/n pick the wrong smtp account on first contact for sure (while later on the history still might fail) Imo. the most straight forward way should also be the best guess, ie. reply from the address that received the mail (To > CC) Smtp settings usually come with a reply-to and/or from field, so i'd match[1] the recipients against those fields of the available smtp accounts and pick the best one unless a rule setup in "nice-to-have" (1) overrides this (perhaps asking when attempting to send to match a blacklist of words for the account against the mail body ("fuck" is not appropriate in professional mails - except when you want to state that "fuck" isn't appropriate ;-) Cheers, Thomas [1] "unsharp", ie. case insensitive and in doubt checking the receiver for containing user and/or host of the smtp account
