プロジェクト

全般

プロフィール

Vote #71955

完了

E-Mail submitted tickets: German umlauts in 'Subject' get malformed (ruby 1.8)

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
29
version_id:
52
issue_org_id:
11065
author_id:
56940
assigned_to_id:
1
comments:
10
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
49
ステータス-->[Closed]

説明

Hello

I'm currently in beta-tests for a new Helpdesk Solution for our company and I am really happy with almost everything - except the weak mailfetch functions. But aside from some minor missing features I found a bug, which is critical for us:

I fetch mails like described in the documentation:

rake -f /var/www/redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV='production' host=example.tld username=helpdesk@example.tld password=secret project=new_tickets

The problem is, that whenever I have German Umlauts (öäü / Eg. 'ü') in the 'Subject' field, they are getting cut of (Eg. "Notebook überhitzt" becomes "Notebook") when viewing the ticket in Redmine while the E-Mail notification shows strange characters instead of the umlaut (it becomes a black rhombus with a queston-mark inside).

Creating tickets with umlauts in Redmine with the Webbrowser works as expected.

Rake About:

root@redmine01:/var/www/redmine# RAILS_ENV=production rake about
About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.8.24
Rack version              1.4
Rails version             3.2.3
Active Record version     3.2.3
Action Pack version       3.2.3
Active Resource version   3.2.3
Action Mailer version     3.2.3
Active Support version    3.2.3
Middleware                Rack::Cache, ActionDispatch::Static, Rack::Lock, #, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root          /var/www/redmine
Environment               production
Database adapter          mysql
Database schema version   20120422150750

I would really appreciate any help

Best regards
Andreas Fries


journals

Apropos:
* While the text in the Subject is messed up, the text inside the mail is displayed perfectly right the ticket and in the ticket-notification-mail.
* In the database (mysql) 'select subject from issues;' shows that the text is cut off after the first umlaut. (Only on tickets submitted by mail)

--------------------------------------------------------------------------------
Could you attach a raw email for which the problem occurs please?
--------------------------------------------------------------------------------
Hi

Thanks for your reply. I have attached a ZIP File with 2 Folders inside. One from my mobile (handy),
one from Outlook Web Access (OWA).

I have found some new hints: Everything works fine, if i use my Android ICS Mobile Phone. With Outlook and Outlook Web Access (OWA) it won't work.

Here is the part i suspect to be the Problem:
Android:
<pre>
Subject: =?utf-8?B?VGVzdCBmcm9tIE1vYmlsZTogw6Qgw7wgw7YuLi4=?=
</pre>

OWA / Outlook:
<pre>
Subject: =?iso-8859-1?Q?Testmail_from_Webmail:_=E4_=F6_=FC...?=
</pre>

Best regards
Andreas
--------------------------------------------------------------------------------
I've loaded the following email from your archive: @owa/2715bc8b-c608-4403-a598-ed98800282d7/Original.eml@ and the subject of the created issue is:
* with ruby1.8.7: "Testmail from Webmail: "
* with ruby1.9.3: "Testmail from Webmail: ä ö ü..."

So it looks like there's no issue with ruby1.9.3. Tests done with MySQL.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thanks for the quick responses. I'll try to upgrade my Installation to Ruby 1.9.3.

I guess, it's nothing what is gonna get fixed anytime soon, if ever?

Best regards
Andreas

--------------------------------------------------------------------------------
Fixed in r9796 for ruby1.8.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------
Why isn't this patch included in the redmine version 2.4?

within the mail_handler.rb the cleaned_up_subject function is still the old one.
--------------------------------------------------------------------------------
r11650 removed cleaned_up_subject code and tests passes.
It seems Rails 3.2.13 fixed this issue.

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


related_issues

relates,Closed,11117,Mailhandler bug on french accent in mail title

Admin Redmine さんが3年以上前に更新

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

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

いいね!0
いいね!0