プロジェクト

全般

プロフィール

Vote #80246

未完了

Problem with tickets issued by rdm-mailhandler on redmine 4.0.4

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

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

0%

予定工数:
category_id:
29
version_id:
0
issue_org_id:
31900
author_id:
411668
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Hi,

my Installation on a CentOS 7 Servere:

Environment:
Redmine version 4.0.4.stable
Ruby version 2.6.2-p47 (2019-03-13) [x86_64-linux]
Rails version 5.2.3
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 1.8.3.1
Filesystem
Redmine plugins:
redmine_checklists 3.1.16
redmine_ckeditor 1.2.2

When I send the following Mail to redmine:

This is a test
--

Mit freundlichen Grüßen / With best regards
i.V. Ing. Gerhard Kronstorfer
Abteilungsleiter EDV

I get the following ticket (created by rdm-mailhandler):

This is a multi-part message in MIME format.
--------------5CDD95DC82FDEC6C69D3183F
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

This is a test
--

Mit freundlichen Gr????en / With best regards
i.V. Ing. Gerhard Kronstorfer
Abteilungsleiter EDV

You can see that there are four additional lines at the start of the ticket which shouldn't be there and that there is a problem with the special characters in the signature.

If I send the same message to my old Installation (redmine 3 on Centos 6) everything ist fine.


journals

Could you try using the latest rdm-mailhandler.rb?: https://www.redmine.org/projects/redmine/repository/revisions/18317/entry/trunk/extra/mail_handler/rdm-mailhandler.rb

Perhaps the problem you are experiencing is related to #31549.
--------------------------------------------------------------------------------
The latest version of rdm-mailhandler.rb solves only a part of the problem.

When I send a normel mail (with no picture) the new version works perfect:

<pre>
Support #4251: Test rdm neu

Autor: Gerhard Kronstorfer
Status: neu
Priorität: Normal
Zugewiesen an:
Kategorie:
Zielversion:
Firma:

Das ist ein Test.
--

Mit freundlichen Grüßen / With best regards
i.V. Ing. Gerhard Kronstorfer
Abteilungsleiter EDV
</pre>

When I send a mail with a picture the picture is lost and the rest of the mail produceses a ticket with the same problems like with the original rdm-mailhandler.rb:

<pre>
Support #4252: Test 3

Autor: Gerhard Kronstorfer
Status: neu
Priorität: Normal
Zugewiesen an:
Kategorie:
Zielversion:
Firma:

This is a multi-part message in MIME format.
--------------23FDBBA74BBC8D731ABDF6E4
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Das ist ein Test mit Screenshot:

asdf????????
--

Mit freundlichen Gr????en / With best regards
i.V. Ing. Gerhard Kronstorfer
Abteilungsleiter EDV
</pre>

Additional Info:

If I grep the mails from the mailserver with

<pre>
rake -f /var/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" ..............
</pre>

All mails are transformed to tickets with no problems.
--------------------------------------------------------------------------------
Gerhard Kronstorfer wrote:
> When I send a mail with a picture the picture is lost and the rest of the mail produceses a ticket with the same problems like with the original rdm-mailhandler.rb:

I will try to debug the issue. Could you send an email which can reproduce the problem to the following address?

*inbox-ce54bef1f797644206b5feb493b949c80c8d2d9bf6c61cf078 at mailsac.com*
(please replace " at " with "@")
--------------------------------------------------------------------------------
I've sent the mail as requested.
--------------------------------------------------------------------------------
Gerhard Kronstorfer wrote:
> I've sent the mail as requested.

Thank you, I have received the email. I will look into this issue.
--------------------------------------------------------------------------------
My coworker looked into this but we could not reproduce the problem. The email you sent to me was correctly parsed after replacing rdm-mailhandler.rb with the latest one.
--------------------------------------------------------------------------------

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


related_issues

relates,Closed,31549,LF line terminators cause misparse of a multi-part email when rdm-mailhandler.rb is invoked from /etc/aliases

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

  • カテゴリEmail receiving_29 にセット

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

いいね!0
いいね!0