MailHandler: fixed that sender's fullname is not unquoted (#10334).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9043 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-01 15:32:34 +00:00
parent 2df6c99e67
commit ab46c52d4a
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ class MailHandler < ActionMailer::Base
def create_user_from_email
addr = email.from_addrs.to_a.first
if addr && !addr.spec.blank?
user = self.class.new_user_from_attributes(addr.spec, addr.name)
user = self.class.new_user_from_attributes(addr.spec, TMail::Unquoter.unquote_and_convert_to(addr.name, 'utf-8'))
if user.save
user
else