prefer To and Cc adresses of accounts on reply
authorGaudenz Steinlin <gaudenz@soziologie.ch>
Thu, 7 Oct 2010 09:05:30 +0000 (05:05 -0400)
committerRich Lane <rlane@club.cc.cmu.edu>
Thu, 7 Oct 2010 09:20:10 +0000 (02:20 -0700)
commitfeeee41cf0d4dae0a2e01fe117cbef9bcff63560
tree7f8b7c159c2910ff38d02b104522a95c682e9358
parent153bfef0c47686dd8d01093cc12a1c65cc799182
prefer To and Cc adresses of accounts on reply

Resending this on Rich's request.

If a message was sent (To or Cc header) to an address which corresponds
to an account prefer this account over the account corresponding to the
address in recipient_email.

This solves the problem that the wrong reply from address is chosen on
mails which are sent to an account which is forwarded to another account.
lib/sup/modes/reply-mode.rb