Makes the mail handler ignore out-of-office emails (#10607).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9358 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -54,6 +54,13 @@ class MailHandler < ActionMailer::Base
|
||||
end
|
||||
return false
|
||||
end
|
||||
# Ignore out-of-office emails
|
||||
if email.header_string("X-Auto-Response-Suppress") == 'OOF'
|
||||
if logger && logger.info
|
||||
logger.info "MailHandler: ignoring out-of-office email"
|
||||
end
|
||||
return false
|
||||
end
|
||||
@user = User.find_by_mail(sender_email) if sender_email.present?
|
||||
if @user && !@user.active?
|
||||
if logger && logger.info
|
||||
|
||||
Reference in New Issue
Block a user