Patch #2059 » mail_hander_broken_subject.diff
| app/models/mail_handler.rb (working copy) | ||
|---|---|---|
|
# check permission
|
||
|
raise UnauthorizedAction unless user.allowed_to?(:add_issues, project)
|
||
|
issue = Issue.new(:author => user, :project => project, :tracker => tracker, :category => category, :priority => priority)
|
||
|
issue.subject = email.subject.chomp
|
||
|
issue.subject = email.subject.chomp.toutf8
|
||
|
issue.description = email.plain_text_body.chomp
|
||
|
issue.save!
|
||
|
add_attachments(issue)
|
||