jk195417/gmail-tools
Gmail as code: archive statement and receipt PDFs by month, manage filters from a TOML file with lint and backfill, and triage the inbox
Manage Gmail filters as code — export existing filters to filters.toml, design new rules, preview and lint the diff, apply it with backfill to existing mail, and audit recent mail for over-archiving. Use when the user wants new Gmail filters or labels, wants to change or clean up filters, asks which senders need rules, or suspects mail is being archived wrongly.
Download PDF attachments (bank and card statements, bills, receipts, invoices) from chosen Gmail senders, decrypt password-protected ones, and archive them by month with a manifest. Use when the user wants statements or receipts collected from Gmail, a new sender added to the archive, a month backfilled, or a list of what has been archived.
Review the Gmail inbox and sort what is there into mail that needs the user's attention, senders that deserve a filter, and documents that belong in the PDF archive. Use when the user asks what in their inbox needs attention, which emails still need rules, which mail should be archived or collected, or for a periodic inbox check.