just use the address instead of building it ourselves

This commit is contained in:
Régis Hanol 2015-12-18 17:54:42 +01:00
parent 9435dd777f
commit ca529a673a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module Email
raise BadDestinationAddress if dest_infos.empty?
from = @message[:from].address_list.addresses.first
user_email = "#{from.local}@#{from.domain}"
user_email = from.address
user_name = from.display_name
# TODO: deal with suspended/inactive users