https://github.com/loeffel-io/mail-downloader
IMAP Mail Downloader - Download attachments and mails as pdf with useful filters
https://github.com/loeffel-io/mail-downloader
downloader mail
Last synced: about 1 month ago
JSON representation
IMAP Mail Downloader - Download attachments and mails as pdf with useful filters
- Host: GitHub
- URL: https://github.com/loeffel-io/mail-downloader
- Owner: loeffel-io
- License: mit
- Created: 2019-07-03T18:40:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T01:13:22.000Z (2 months ago)
- Last Synced: 2025-03-27T09:52:24.789Z (about 2 months ago)
- Topics: downloader, mail
- Language: Go
- Homepage:
- Size: 5.41 MB
- Stars: 13
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mail Downloader
[](https://goreportcard.com/report/github.com/loeffel-io/mail-downloader)
Download attachments and mails as pdf through useful filters.
Years later, this tool is still a thing. I use it every month to download all my invoices from my mail accounts since years.
### Requirements
- [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html)
### Usage
```bash
make build
./mail-downloader -config=config.yml -from="2019-10-01" -to="2019-12-31"
```### Config
```yaml
imap:
username: [email protected]
password: secret
server: imap.gmail.com
port: 993attachments:
mimetypes:
- application/pdfmails:
subjects: # subject contains
- invoice, amazon # invoice AND amazon
- rechnung # OR rechnung
- receipt # OR receipt
```### Output
```text
files
├── [email protected]
├── December-2019
│ ├── marketplace.amazon.de
│ │ │── invoice.pdf
│ ├── iconfinder.com
│ │── invoice.pdf
│ │── invoice-2.pdf
│ │── mail-123.pdf
│
├── November -2019
├── facebook.com
│── invoice.pdf
```