プロジェクト

全般

プロフィール

Vote #71429

完了

Full name is not unquoted when creating users from emails

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
40
issue_org_id:
10334
author_id:
50803
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
36
ステータス-->[Closed]

説明

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.)


journals

Fixed and test added in r9043. Thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン1.4.0_40 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0