Defect #10334

Full name is not unquoted when creating users from emails

Added by Lauri Tirkkonen almost 11 years ago. Updated almost 11 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Email receiving
Target version:1.4.0
Resolution:Fixed Affected version:1.3.0


Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.7.2
Rack version 1.1
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter sqlite3
Database schema version 20110902000000

When creating users from emails with internationalized From-headers, fullname is not unquoted.

The following email, passed to rdm-mailhandler.rb (with appropriate --url, --key, --project, --tracker, --no-permission-check options and --unknown-user=create)

From: =?utf-8?b?w4TDpCDDlsO2?= <>
Subject: foo
Content-Type: text/plain; charset=utf-8

testing user creation with quoted From-header

creates a user whose fullname is set to '=?utf-8?b?w4TDpCDDlsO2?= -', when it should in fact be set to "Ää Öö".

The attached patch based on the 1.3-stable branch (svn r8910) fixes this issue.

(It's possible this is actually a bug in TMail (which is what Rails 2 uses), but that doesn't seem to be maintained anymore; the last release and latest mail sent to its mailing list were in 2010.)

redmine-mail-from-unquote.patch Magnifier - Patch to unquote user name in From-header in received emails (871 Bytes) Lauri Tirkkonen, 2012-02-28 15:50

Associated revisions

Revision 9043
Added by Jean-Philippe Lang almost 11 years ago

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


#1 Updated by Jean-Philippe Lang almost 11 years ago

  • Assignee set to Jean-Philippe Lang
  • Target version set to 1.4.0
  • Resolution set to Fixed

Fixed and test added in r9043. Thanks.

#2 Updated by Jean-Philippe Lang almost 11 years ago

  • Status changed from New to Closed

Also available in: Atom PDF