fix fuer AMAZON_SES_SETUP_NOTIFICATION
This commit is contained in:
@@ -376,6 +376,10 @@ def process_message(message_body: dict, receive_count: int) -> bool:
|
|||||||
receipt = ses_msg.get('receipt', {})
|
receipt = ses_msg.get('receipt', {})
|
||||||
|
|
||||||
message_id = mail.get('messageId') # Das ist der S3 Key!
|
message_id = mail.get('messageId') # Das ist der S3 Key!
|
||||||
|
# FIX: Amazon SES Setup Notification ignorieren
|
||||||
|
if message_id == "AMAZON_SES_SETUP_NOTIFICATION":
|
||||||
|
log("ℹ️ Received Amazon SES Setup Notification. Ignoring.", 'INFO')
|
||||||
|
return True # Erfolgreich (löschen), da kein Fehler
|
||||||
from_addr = mail.get('source')
|
from_addr = mail.get('source')
|
||||||
recipients = receipt.get('recipients', [])
|
recipients = receipt.get('recipients', [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user