Permalink
Browse files

Preserve the app_id between mails in a single connection

  • Loading branch information...
mlandauer committed Jun 19, 2018
1 parent 2c2da5e commit 93e01d185c7c79c6c63ef8bc840357c0b18fc53f
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/cuttlefish_smtp_server.rb
@@ -158,7 +158,8 @@ def receive_message
# It comes in with unknown encoding - so let's encode it as base64
MailWorker.perform_async(current.recipients, Base64.encode64(current.data), current.app_id)
@current = OpenStruct.new
# Preserve the app_id as we are already authenticated
@current = OpenStruct.new(app_id: current.app_id)
true
end

0 comments on commit 93e01d1

Please sign in to comment.