Project

General

Profile

Actions

Defect #29719

closed

[Receiving emails] Mail keep staying in my mail box and keep generating issues after re-fetching mail.

Added by fon1105 Lee over 5 years ago. Updated over 5 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Attached file is the log after receiving mail and creating issue.

The issue often occurs when receiving a mail with text format. html format seems to not occur.

I see this message in the log.
--> Message <> NOT processed and left on the server

This is my command.
/usr/local/bin/bundle exec /usr/local/bin/rake -f /redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" host=10.1.1.1 username=username password=password port=110 project=test tracker=Support unknown_user=accept priority=normal status=new no_permission_check=1 no_account_notice=0 --trace

Environment:
Redmine version 2.6.3.stable
Ruby version 2.0.0-p353 (2013-11-22) [i386-linux]
Rails version 3.2.21
Environment production
Database adapter Mysql2


Files

Redmine_log.txt (9.95 KB) Redmine_log.txt fon1105 Lee, 2018-10-03 07:03
Redmine_log2.txt (29.5 KB) Redmine_log2.txt fon1105 Lee, 2018-10-04 07:11
Activation de votre compte Redmine.msg (96.5 KB) Activation de votre compte Redmine.msg Romain bekdache, 2018-10-06 15:18
Actions #1

Updated by fon1105 Lee over 5 years ago

I have another mail with the same issue. I attached the log. Does anyone who can help with this issue? Thank you.

Actions #3

Updated by Go MAEDA over 5 years ago

  • Category set to Email receiving
Actions #4

Updated by fon1105 Lee over 5 years ago

Hello,

Could somebody help me with this issue? Thank you very much.

Actions #5

Updated by Pavel Rosický over 5 years ago

it looks like MailHandler#safe_receive returned false for some reason and the email was left on the server
https://github.com/redmine/redmine/blob/master/lib/redmine/pop3.rb#L59

but an issue was created anyway
https://github.com/redmine/redmine/blob/master/app/models/mail_handler.rb#L221

maybe something went wrong when creating an attachment in #add_attachments ? unfortunatelly there's no error in the log

could you try a recent redmine version? 2.6.3 is pretty old...

Actions #6

Updated by fon1105 Lee over 5 years ago

Thank you for your reply.

As I am using some plug-in which only works with older redmine version, so it's hard to try the recent redmine version.

I found the issue often occurs when the mail is text format instead of HTML format, no matter the mail has attachment or not.

Actions #7

Updated by fon1105 Lee over 5 years ago

Which files of Redmine system are related to fetch mail?

Is it possible to patch/replace few files with regards to fetch mail in my current Redmine (2.6)?

Actions #8

Updated by fon1105 Lee over 5 years ago

  • Status changed from New to Resolved

Resolved by upgrading Redmine System.

Actions #9

Updated by Marius BĂLTEANU over 5 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Thanks for your feedback.

Actions

Also available in: Atom PDF