diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-06 12:54:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-06 12:54:59 +0000 |
commit | 1ab7f6f9306da568796b4135c6d708858b57506b (patch) | |
tree | f0a128be9f9f9762258d8727a564b66f4b12e9b7 | |
parent | f6f7467cdd98f66af03dbf1c9e5a2ae7a05c10ea (diff) | |
download | redmine-1ab7f6f9306da568796b4135c6d708858b57506b.tar.gz redmine-1ab7f6f9306da568796b4135c6d708858b57506b.zip |
Merged r4820 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@5014 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/mail_handler.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 617f0ee11..8f18163c0 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -100,7 +100,7 @@ class MailHandler < ActionMailer::Base elsif m = email.subject.match(MESSAGE_REPLY_SUBJECT_RE) receive_message_reply(m[1].to_i) else - receive_issue + dispatch_to_default end rescue ActiveRecord::RecordInvalid => e # TODO: send a email to the user @@ -113,6 +113,10 @@ class MailHandler < ActionMailer::Base logger.error "MailHandler: unauthorized attempt from #{user}" if logger false end + + def dispatch_to_default + receive_issue + end # Creates a new issue def receive_issue |