Project

General

Profile

Allow receive auto email

Added by Guilherme Rodrigues de Oliveira over 6 years ago

I need to create auto email to my redmine instance, but i change some configs on mail_handler.rb on \app\models and don't changes anything.
How i can change this configuration and allow this?


Replies (2)

RE: Allow receive auto email - Added by Go MAEDA over 6 years ago

Probably you can see some "MailHandler: ignoring email ..." message in the log/production.log file. Could you show the messages and paste the change you made against the source code of Redmine?

RE: Allow receive auto email - Added by Guilherme Rodrigues de Oliveira over 6 years ago

Hi!

I try to change the file below (comment the lines, replace the entries, delete this cattr_accessor, but these changes are always ignored and my automatic emails are not read and I do not have the tasks created.

in log, the message is:
MailHandler: ignoring email with Auto-Submitted:auto-replied header

cattr_accessor :ignored_emails_headers
self.ignored_emails_headers = {
#'Auto-Submitted' => /\Aauto-(replied|generated)/,
#'X-Autoreply' => 'yes'
}

Path: \app\models\mail_handler.rb

My environment:
Redmine version 3.4.4.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
Rails version 4.2.8
Environment production
Database adapter Mysql2

    (1-2/2)