Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
634c9f40
Commit
634c9f40
authored
Apr 07, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
process_reply -> process_create_note; handle_reply -> process_reply
parent
eac35833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/gitlab/email/receiver.rb
lib/gitlab/email/receiver.rb
+5
-5
No files found.
lib/gitlab/email/receiver.rb
View file @
634c9f40
...
...
@@ -22,7 +22,7 @@ module Gitlab
raise
EmptyEmailError
if
@raw
.
blank?
if
sent_notification
process_
reply
process_
create_note
elsif
message_project
process_create_issue
...
...
@@ -34,7 +34,7 @@ module Gitlab
end
private
def
process_
reply
def
process_
create_note
raise
AutoGeneratedEmailError
if
message
.
header
.
to_s
=~
/auto-(generated|replied)/
author
=
sent_notification
.
recipient
...
...
@@ -44,7 +44,7 @@ module Gitlab
raise
NoteableNotFoundError
unless
sent_notification
.
noteable
reply
=
handle
_reply
(
project
)
reply
=
process
_reply
(
project
)
raise
EmptyEmailError
if
reply
.
blank?
note
=
create_note
(
reply
)
...
...
@@ -65,7 +65,7 @@ module Gitlab
message_project
,
message_sender
,
title:
message
.
subject
,
description:
handle
_reply
(
message_project
)
description:
process
_reply
(
message_project
)
).
execute
unless
issue
.
persisted?
...
...
@@ -100,7 +100,7 @@ module Gitlab
Project
.
find_with_namespace
(
reply_key
)
if
reply_key
end
def
handle
_reply
(
project
)
def
process
_reply
(
project
)
reply
=
ReplyParser
.
new
(
message
).
execute
.
strip
add_attachments
(
reply
,
project
)
...
...
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