From 4299a6523a0ea8bd590c4a43026febd34108f03d Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Tue, 30 Dec 2025 17:46:57 -0800 Subject: [PATCH] Add print statements for new email detection and webhook sending MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/services/email_monitor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/email_monitor.py b/src/services/email_monitor.py index 42099c1..70c6924 100644 --- a/src/services/email_monitor.py +++ b/src/services/email_monitor.py @@ -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