https://github.com/ahochsteger/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.
https://github.com/ahochsteger/gmail-processor
automation gmail script
Last synced: 13 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ahochsteger/gmail-processor
- Owner: ahochsteger
- License: apache-2.0
- Created: 2013-02-10T21:23:01.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2026-04-08T11:01:59.000Z (19 days ago)
- Last Synced: 2026-04-08T11:25:33.510Z (19 days ago)
- Topics: automation, gmail, script
- Language: TypeScript
- Homepage: http://ahochsteger.github.io/gmail-processor/
- Size: 30.1 MB
- Stars: 579
- Watchers: 23
- Forks: 142
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
- jimsghstars - ahochsteger/gmail-processor - Gmail Processor is an open-source project that automates the processing of Gmail messages and attachments using Google Apps Script and execute actions (e.g. store attachments in a GDrive folder, log i (TypeScript)
README
# 📧 Gmail Processor 🤖 - Automate Email Processing with Ease
[](#license)
[](https://github.com/ahochsteger/gmail-processor/releases)
[](https://github.com/ahochsteger/gmail-processor/releases)
[](https://github.com/ahochsteger/gmail-processor/actions/workflows/ci.yaml)
[](https://coveralls.io/github/ahochsteger/gmail-processor)
More badges ...
[](https://github.com/ahochsteger/gmail-processor/tags)
[](https://github.com/ahochsteger/gmail-processor/stargazers)
[](https://github.com/ahochsteger/gmail-processor/forks?include=active&page=1&period=2y&sort_by=last_updated)
[](https://github.com/ahochsteger/gmail-processor/releases)
[](https://github.com/ahochsteger/gmail-processor/commits)

[](https://github.com/ahochsteger/gmail-processor/graphs/contributors)
[](#contributors)
[](CODE_OF_CONDUCT.md)
[](https://github.com/ahochsteger/gmail-processor/issues)
[](https://github.com/ahochsteger/gmail-processor/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/ahochsteger/gmail-processor/pulls)
[](https://github.com/ahochsteger/gmail-processor/pulls?q=is%3Apr+is%3Aclosed)
[](https://snyk.io/test/github/ahochsteger/gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
[](https://sonarcloud.io/summary/new_code?id=ahochsteger_gmail-processor)
**[Gmail Processor](https://github.com/ahochsteger/gmail-processor)** is an open-source [Google Apps Script](https://www.google.com/script/start/) library that automates the processing of Gmail messages and attachments by executing actions (e.g. store attachments in a GDrive folder, log information into a spreadsheet) depending on powerful matching criteria.

Gmail Processor is the successor of [Gmail2GDrive](https://github.com/ahochsteger/gmail-processor/tree/1.x) with vastly enhanced functionality, completely re-written in [TypeScript](https://www.typescriptlang.org/) with extensibility and stability in mind, using a modern development setup and automation all over the place (dependency updates, tests, documentation, releases, deployments). There's a convenient migration available to convert your old configuration to the new format (see [Migrating from GMail2GDrive](https://ahochsteger.github.io/gmail-processor/docs/migrating)).
## Key Features
- 🤖 **Extensive Automation**: Automate email processing using the provided configuration to match threads, messages, and attachments, and trigger actions accordingly.
- 📁 **Google Drive Integration**: Store files such as attachments, PDFs of messages, or entire threads into any location within Google Drive, providing easy organization and accessibility.
- 🔒 **PDF Decryption**: Decrypt password-protected PDFs attached to emails and store them.
- ✂️ **OCR Text Extraction**: Extract text (e.g. invoice number) from attached documents (JPEG, PNG, GIF, PDF) to organize and annotate your attachments.
- 📄 **Google Spreadsheet Logging**: Keep track of processed threads, messages, and attachments by logging valuable information into a Google Spreadsheet.
- 🔧 **Flexible Configuration**: Gmail Processor operates based on a JSON configuration that allows you to define matching rules and specify corresponding actions to be executed.
- 📐 **Extensible Architecture**: Designed with extensibility in mind, Gmail Processor enables seamless addition of new actions and integrations in the future to adapt to evolving requirements.
## Getting Started
The **[Getting Started Guide](https://ahochsteger.github.io/gmail-processor/docs/getting-started)** shows how to setup Gmail Processor in Google Apps Script and quickly get it up and running.
## Config Reference
The **[Config Reference](https://ahochsteger.github.io/gmail-processor/docs/reference/)** provides detailed information about the Gmail Processor configuration.
## Examples
The **[Examples](https://ahochsteger.github.io/gmail-processor/docs/examples/)** show different ways of using Gmail Processor.
## Playground
The **[Playground](https://ahochsteger.github.io/gmail-processor/playground)** helps to create the configuration in a schema-aware online editor with a visual schema guide on the side.
## Contributing
Contributions to Gmail Processor are welcome! Whether you want to add new features, fix bugs, or improve documentation, check out the [contribution guidelines](https://ahochsteger.github.io/gmail-processor/docs/community/contributing) to get started.
## Development Guide
See the [Development Guide](https://ahochsteger.github.io/gmail-processor/docs/community/contributing#development-guide) for details.
## Contributors

Andreas Hochsteger
💻 📖 💡 🚇 🚧 👀 🔧 ⚠️

Piraveen Kamalathas
💻 📖

Ciprian Constantinescu
💻 💡

marcusschweizer
💻

Markus Kurzmann
💻

NadavClaudeCohen
💻 📖 💡

Schuller Tom
💻 💡

Tom Judge
💻 💡

David Lemayian ✨
📖

Denny de la Haye
💻

steve192
💻

gregory nicholas
💡

Gabriel Esposito
📖

MikeDabrowski
💻 💡

Chris Mazanec
🤔 💻
Add your contributions
## Tooling & Automation
Gmail Processor uses a set of automated tools and bots to ensure high code quality, security, and smooth maintenance:
- 🤖 **[Renovate](https://www.whitesourcesoftware.com/free-developer-tools/renovate)**: Automatically keeps dependencies up to date via Pull Requests.
- 🛡️ **[Snyk](https://snyk.io/)**: Scans for vulnerabilities in dependencies and Infrastructure as Code (IaC).
- 🧩 **[SonarSource](https://www.sonarqube.org/)**: Performs static code analysis to detect bugs, vulnerabilities, and code smells.
- 💎 **Gemini Code Assist**: Provides AI-powered code reviews and assistance for contributors.
- 🚀 **GitHub Actions**: Heavily used for Continuous Integration (CI), testing, and automated deployment.
- ✨ **AllContributors**: Manages the list of contributors via a GitHub bot.
## License
GmailProcessor is released under the [Apache 2.0 License](LICENSE).
## Support
For any questions, issues, or feedback, please open an [issue](https://github.com/ahochsteger/gmail2gdrive/issues) on GitHub.