Add print statements for new email detection and webhook sending
All checks were successful
Build And Test / publish (push) Successful in 48s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-30 17:46:57 -08:00
parent 0fcd3fbae3
commit 4299a6523a

View File

@@ -247,10 +247,14 @@ class EmailMonitor:
if await self._is_email_seen(email.id, mailbox):
continue
# New email detected
print(f"[NEW EMAIL] From: {email.from_address.email} | Subject: {email.subject}")
# Mark as seen first (to avoid duplicates on retry)
await self._mark_as_seen(email, mailbox, notification_sent=False)
# Send notification
print(f"[WEBHOOK] Sending notification for email {email.id}...")
success, error = await self._send_notification(email, mailbox)
# Update notification status