Project

General

Profile

Actions

Defect #20465

open

MailHandler: ignoring email with Auto-Submitted:auto-generated header

Defect #20465: MailHandler: ignoring email with Auto-Submitted:auto-generated header

Added by Benoit BRETON over 11 years ago. Updated almost 11 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Resolution:
Affected version:

Description

I think there's a little bug in the processing file "mail_handler.rb" a line 84.

It should be replaced:

     'Auto-Submitted' => / \ Aauto- (Replied | generated) /,
by
     'Auto-Submitted' => / \ ^ self (Replied | generated) /,


Related issues 1 (0 open — 1 closed)

Related to Redmine - Patch #16190: Relax rejections based on Auto-Submitted headerClosedActions

Updated by Toshi MARUYAMA about 11 years ago Actions #1

  • Status changed from New to Needs feedback

Please describe more details.

Updated by Nate Mow almost 11 years ago Actions #2

I think I've run in to the same bug with our 3.0.3 instance; mail is definitely being sent for some circumstances, but through some combination of acting through the UI and also responding via direct email replies, the log tail is showing "MailHandler: ignoring email with Auto-Submitted:auto-replied header". I've confirmed this is happening using both local sendmail and Gmail SMTP.

It seems like a workaround might go in app/models/mailer.rb to allow config/settings.yml:mail_from config to override that value to at least allow users to skip the mail_handler.rb validation.

Updated by Nate Mow almost 11 years ago Actions #3

As best I can tell, it looks like once the header has been added, whether by Redmine or by an external mail server (e.g. #16190), Redmine will just skip sending of some emails...data does make it in, attaches to correct ticket, etc. but no notice is happening.

Updated by Toshi MARUYAMA almost 11 years ago Actions #4

  • Related to Patch #16190: Relax rejections based on Auto-Submitted header added
Actions

Also available in: PDF Atom