gmail-processor
Gmail Processor is a Google Apps Script library that automates the processing of Gmail messages and attachments and execute actions (e.g. store attachments in a GDrive folder, log information in a spreadsheet) depending on matching criteria.
AI Summary
Gmail Processor
A Google Apps Script library that automatically processes Gmail messages and attachments based on configurable rules.
Target Users
Intermediate-to-advanced GAS developers who need to build internal workflows that auto-sort Gmail, save files to Drive, and log results to Sheets.
Problems Solved
Manually sorting, saving, and recording large volumes of emails and attachments is time-consuming and error-prone.
Tags
Main Features
Flexible rule matching via JSON config
Define matching rules for threads, messages, and attachments in a JSON file and let the library run the corresponding actions.
Automatic Google Drive storage
Automatically stores matching attachments or PDF copies of emails/threads into any Drive folder for easy organisation.
Spreadsheet logging
Logs processed threads, messages, and attachments into Google Sheets for auditing and reporting.
PDF decryption & OCR text extraction
Decrypts password-protected PDFs and extracts text from images/PDFs (JPEG, PNG, GIF, PDF) via OCR to enrich attachment metadata.
Extensible TypeScript architecture
Completely re-written in TypeScript with an extensible architecture that facilitates adding new actions or integrations.
Usage Examples
Concrete code examples cannot be provided because the README and public documentation do not expose callable code snippets.