Adds a simple API and a standalone script that can be used to forward emails from a local or remote email server to Redmine (#1110).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1584 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -84,7 +84,7 @@ class MailHandler < ActionMailer::Base
|
||||
# TODO: other ways to specify project:
|
||||
# * parse the email To field
|
||||
# * specific project (eg. Setting.mail_handler_target_project)
|
||||
identifier = if @@handler_options[:project]
|
||||
identifier = if !@@handler_options[:project].blank?
|
||||
@@handler_options[:project]
|
||||
elsif email.plain_text_body =~ %r{^Project:[ \t]*(.+)$}i
|
||||
$1
|
||||
|
||||
Reference in New Issue
Block a user