summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/mail_handler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 738feb30e..8a4084769 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -24,6 +24,7 @@ class MailHandler < ActionMailer::Base
class UnauthorizedAction < StandardError; end
class NotAllowedInProject < UnauthorizedAction; end
class InsufficientPermissions < UnauthorizedAction; end
+ class LockedTopic < UnauthorizedAction; end
class MissingInformation < StandardError; end
class MissingContainer < StandardError; end
@@ -301,7 +302,7 @@ class MailHandler < ActionMailer::Base
add_attachments(reply)
reply
else
- logger&.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
+ raise LockedTopic, "ignoring reply to a locked message [#{message.id} #{message.subject}]"
end
end