See homepage for more info.
- Build with
mvn clean package
. - Run with
java -jar target/client-3.0.0-jar-with-dependencies.jar
.
- On some emails, the app will fail with
OutOfMemoryError
even with the maximum heap size set to 2GB. This occurs when the Gmail API client library unpacks the downloaded email in local memory using a third-party JSON library, which appears to sometimes make inefficient use of the available memory. If this happens, the original email will remain intact, the memory will be recovered, and the processing will continue with the next email. - The maximum number of search results is 500 despite the requested limit being much higher. This appears to be a restriction within the Gmail API service. If (downloading and) removing attachments through the Schedule feature, this limitation is not an issue, since a subsequent search will return different results. If only downloading attachments, a workaround is to manually add date ranges in the advanced search query.
Feel free to report issues and create pull requests.
If you like Unattach:
- Buy Developers a Coffee ☕, or
- Become a Sponsor ❤️