mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FEATURE: new 'raw email' modal when listing rejected emails
This commit is contained in:
parent
de58e58272
commit
cf4c256b17
9 changed files with 42 additions and 17 deletions
|
@ -48,16 +48,12 @@ module Email
|
|||
end
|
||||
|
||||
def process_internal
|
||||
raise AutoGeneratedEmailError if is_auto_generated?
|
||||
|
||||
user = find_or_create_user(from)
|
||||
@incoming_email.update_columns(user_id: user.id)
|
||||
body = select_body || ""
|
||||
|
||||
raise AutoGeneratedEmailError if is_auto_generated?
|
||||
raise NoBodyDetectedError if body.blank? && !@mail.has_attachments?
|
||||
|
||||
user = find_or_create_user(from)
|
||||
|
||||
@incoming_email.update_columns(user_id: user.id)
|
||||
|
||||
raise InactiveUserError if !user.active && !user.staged
|
||||
|
||||
if action = subscription_action_for(body, subject)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue