@@ -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 | |
@@ -114,6 +114,10 class MailHandler < ActionMailer::Base | |||||
114 | false |
|
114 | false | |
115 | end |
|
115 | end | |
116 |
|
116 | |||
|
117 | def dispatch_to_default | |||
|
118 | receive_issue | |||
|
119 | end | |||
|
120 | ||||
117 | # Creates a new issue |
|
121 | # Creates a new issue | |
118 | def receive_issue |
|
122 | def receive_issue | |
119 | project = target_project |
|
123 | project = target_project |
General Comments 0
You need to be logged in to leave comments.
Login now