Project

General

Profile

Actions

Defect #10334

closed

Full name is not unquoted when creating users from emails

Added by Lauri Tirkkonen over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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?= <foo@example.org>
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.)


Files

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

Updated by Jean-Philippe Lang over 12 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.

Actions #2

Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF