fix fuer AMAZON_SES_SETUP_NOTIFICATION

This commit is contained in:
Andreas Knuth 2025-11-30 17:20:44 -06:00
parent 8011cd5e1d
commit 1a85ed3a89
1 changed files with 4 additions and 0 deletions

View File

@ -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', [])