Patch #7598 ยป extensible-mail-handler.patch
| app/models/mail_handler.rb | ||
|---|---|---|
|
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
|
||
| ... | ... | |
|
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
|
||