Skip to content

Repository files navigation

IMAP Email Parser

A small Python utility that connects to your IMAP server, parses incoming mail, and shows a sticky desktop popup. Built for Foxmail users who keep missing Foxmail's 3-second toast notification — but it works with no mail client at all.

Features

  • Sticky popup with sender, recipients, subject, body preview, and attachment count.
  • IMAP IDLE for sub-second push notifications; auto-falls back to polling.
  • Working hours / DND — silent outside business hours, summary popup when the work day starts.
  • VIP senders highlighted in red, override DND. Muted senders never pop.
  • Foxmail integration — clicking Open Foxmail on the popup brings up the inbox.
  • Stdlib only — no pip install, no internet needed once the script is on the machine.
  • DPAPI-encrypted credentials with configurable expiry.

Quick start

python foxmail_imap_notify.py

Enter account and password when prompted. Send yourself a test mail; the popup should appear within ~1 second.

For silent autostart at every Windows login:

python foxmail_imap_notify.py --install-autostart

Documentation

  • USER.md — daily usage, configuration, commands, troubleshooting.
  • DEVELOPER.md — tunable constants, architecture, IMAP IDLE algorithm, threat model.
  • VERSION.md — release history.

Files

File Purpose
foxmail_imap_notify.py The watcher — talks to the IMAP server, shows the popup.
foxmail_notify.py Legacy file-based watcher (v1.x) — kept for reference.
foxmail_diagnose.py One-off helper that inspects Foxmail's storage.

Requirements

Windows + Python 3.12+ with tkinter. No external packages.

License

Internal tool. Modify freely.

About

parsing mail and no chance to miss notification

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages