diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 36b0dc484..32c809d18 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -126,7 +126,9 @@ module Email when :reply email_log = destination[:obj] - raise ReplyUserNotMatchingError if email_log.user_id != user.id + if email_log.user_id != user.id + raise ReplyUserNotMatchingError, "email_log.user_id => #{email_log.user_id.inspect}, user.id => #{user.id.inspect}" + end create_reply(user: user, raw: body,