##// END OF EJS Templates
Introduced MailHandler#dispatch_to_default method to make MailHandler more extensible. #7598...
Jean-Baptiste Barth -
r4700:8b5ebd92c98a
parent child
Show More
@@ -100,7 +100,7 class MailHandler < ActionMailer::Base
100 elsif m = email.subject.match(MESSAGE_REPLY_SUBJECT_RE)
100 elsif m = email.subject.match(MESSAGE_REPLY_SUBJECT_RE)
101 receive_message_reply(m[1].to_i)
101 receive_message_reply(m[1].to_i)
102 else
102 else
103 receive_issue
103 dispatch_to_default
104 end
104 end
105 rescue ActiveRecord::RecordInvalid => e
105 rescue ActiveRecord::RecordInvalid => e
106 # TODO: send a email to the user
106 # TODO: send a email to the user
@@ -113,6 +113,10 class MailHandler < ActionMailer::Base
113 logger.error "MailHandler: unauthorized attempt from #{user}" if logger
113 logger.error "MailHandler: unauthorized attempt from #{user}" if logger
114 false
114 false
115 end
115 end
116
117 def dispatch_to_default
118 receive_issue
119 end
116
120
117 # Creates a new issue
121 # Creates a new issue
118 def receive_issue
122 def receive_issue
General Comments 0
You need to be logged in to leave comments. Login now