A lightweight Windows app that automatically scans your Gmail inbox for invoice emails, downloads attached or linked PDF invoices, and forwards them to specified recipients based on subject-line instructions.
- ✅ Gmail Integration with OAuth2
- 📥 Automatic PDF Extraction (from attachments or links)
- 📤 Smart Email Forwarding based on subject-line routing
- 🖥️ Simple GUI for manual control and configuration
- 📄 Logging of all actions and errors
- 🛠️ Packaged as a Windows Executable (.exe)
-
The app scans Gmail for emails with a subject like:
InvoicePDF+recipient@example.com -
It extracts the
recipient@example.comaddress. -
It then:
- Downloads the PDF from the email (either attachment or external link)
- Composes a new email
- Attaches the PDF
- Forwards it to the extracted recipient
-
A log entry is recorded for each operation (success or error).
| Component | Tool/Library |
|---|---|
| Language | Python 3.11+ |
| GUI | Tkinter or PyQt5 |
| Email Access | Gmail API + OAuth2 |
| PDF Handling | requests, email |
| Logging | Python logging module |
| Packaging | PyInstaller |
- Manual scan trigger
- Status display (last scan, last forward, errors)
- Configuration for Gmail credentials, recipient rules
- Log viewer
- Clone/download this repo and install dependencies:
pip install -r requirements.txt - Run the app:
python main.py - Configure your Gmail and recipient rules in the GUI.
To create a Windows executable:
pyinstaller --onefile main.py
MIT License
Questions or setup help? Contact you@example.com