Skip to content

IMAP Mail Downloader - Download attachments and mails as pdf with useful filters

License

Notifications You must be signed in to change notification settings

loeffel-io/mail-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2acadfd · Sep 28, 2024

History

76 Commits
Jan 21, 2020
Jan 21, 2020
Sep 28, 2024
Sep 28, 2024
Mar 28, 2020
Sep 28, 2024
Jan 21, 2020
Sep 28, 2024
Sep 28, 2024
Jan 20, 2020
Sep 28, 2024
Sep 28, 2024
May 11, 2020

Repository files navigation

Mail Downloader

Go Report Card

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.

preview

Requirements

Usage

make build
./mail-downloader -config=config.yml -from="2019-10-01" -to="2019-12-31"

Config

imap:
  username: [email protected]
  password: secret
  server: imap.gmail.com
  port: 993

attachments:
  mimetypes:
    - application/pdf

mails:
  subjects: # subject contains
    - invoice, amazon # invoice AND amazon
    - rechnung # OR rechnung
    - receipt # OR receipt

Output

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

About

IMAP Mail Downloader - Download attachments and mails as pdf with useful filters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published