diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-09 19:24:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-09 19:24:07 +0000 |
commit | cff3950e6bda624c70d09cdda40e098e4b81736a (patch) | |
tree | f9fc1079471dba1ccb5d6a0413d3ce5b4a2a9452 /app/models | |
parent | 42193960f2f442e19e044ae0d999fb1a48094b6f (diff) | |
download | redmine-cff3950e6bda624c70d09cdda40e098e4b81736a.tar.gz redmine-cff3950e6bda624c70d09cdda40e098e4b81736a.zip |
Added a test for the mail handler.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@524 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/mail_handler.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 872174918..39b088bf4 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -18,7 +18,7 @@ class MailHandler < ActionMailer::Base # Processes incoming emails - # Currently, it only supports adding notes to an existing issue + # Currently, it only supports adding a note to an existing issue # by replying to the initial notification message def receive(email) # find related issue by parsing the subject @@ -33,8 +33,8 @@ class MailHandler < ActionMailer::Base # check permission return unless Permission.allowed_to_role("issues/add_note", user.role_for_project(issue.project)) - # add the notes - issue.init_journal(user, email.body) + # add the note + issue.init_journal(user, email.body.chomp) issue.save end end |