Add print statements for new email detection and webhook sending
All checks were successful
Build And Test / publish (push) Successful in 48s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user