Revision d5a0d3bc
Added by Marc Dequènes over 14 years ago
- ID d5a0d3bcaf66c77f67351fff2ac924feed815b92
lib/cyborghood/mail.rb | ||
---|---|---|
def create_reply
|
||
tmail_reply = @mail.create_reply
|
||
tmail_reply.from_addrs = TMail::Address.parse(@config.mail.from_address || self.to.first)
|
||
tmail_reply.to_addrs = @mail.from_addrs.collect do |a|
|
||
tmail_reply.to_addrs = (@mail.reply_to_addrs || @mail.from_addrs).collect do |a|
|
||
address = TMail::Unquoter.unquote_and_convert_to(a.to_s, "UTF-8")
|
||
quoted_address = quote_address_if_necessary(address, "UTF-8")
|
||
TMail::Address.parse(quoted_address)
|
Also available in: Unified diff
[evol] Mail: reply to Reply-To addresses instead of From addresses if present