Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
31df5542
Commit
31df5542
authored
Feb 17, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ticket/master/170-mail-handler-dispatch'
parents
a5c5047d
151a142c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mail_handler.rb
app/models/mail_handler.rb
+9
-1
No files found.
app/models/mail_handler.rb
View file @
31df5542
...
...
@@ -100,7 +100,7 @@ class MailHandler < ActionMailer::Base
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
...
...
@@ -113,6 +113,14 @@ class MailHandler < ActionMailer::Base
logger
.
error
"MailHandler: unauthorized attempt from
#{
user
}
"
if
logger
false
end
# Dispatch the mail to the default method handler, receive_issue
#
# This can be overridden or patched to support handling other incoming
# email types
def
dispatch_to_default
receive_issue
end
# Creates a new issue
def
receive_issue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment