Skip to main content

Simple tool for downloading email attachments for all emails in a given folder using an IMAP client.

Install:

$ pip install attachment-downloader

Usage:

Usage: attachment-downloader [options]

Options:
  -h, --help            show this help message and exit
  --host=HOST           IMAP Host
  --username=USERNAME   IMAP Username
  --password=PASSWORD   IMAP Password
  --imap-folder=IMAP_FOLDER
                        IMAP Folder to extract attachments from
  --subject-regex=SUBJECT_REGEX
                        Regex that the subject must match against
  --date-after=DATE_AFTER
                        Select messages after this date
  --date-before=DATE_BEFORE
                        Select messages before this date
  --filename-template=FILENAME_TEMPLATE
                        Attachment filename (jinja2) template.
  --output=DOWNLOAD_FOLDER
                        Output directory for attachment download
  --delete              Delete downloaded emails from Mailbox
  --delete-copy-folder=DELETE_COPY_FOLDER
                        IMAP folder to copy emails to before deleting them

Example:

$ attachment-downloader --host imap.example.com --username mail@example.com --password pa55word \\
    --imap-folder invoices --output ~/Downloads

For full instructions and documentation visit: https://github.com/jamesridgway/attachment-downloader

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attachment_downloader-1.3.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

attachment_downloader-1.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file attachment_downloader-1.3.0.tar.gz.

File metadata

  • Download URL: attachment_downloader-1.3.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for attachment_downloader-1.3.0.tar.gz
Algorithm Hash digest
SHA256 49b9621affb32df2289f9072374e28f3325156b012a02fb2e56c310d5adec937
MD5 650bff21818706829376fe0710a7ca13
BLAKE2b-256 e749152d70575d11c3572f635fcb800ed761236f1b6244b089d90070223687d3

See more details on using hashes here.

File details

Details for the file attachment_downloader-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for attachment_downloader-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d40099b32a1a82871712b59afecc217b370ebf9dd8da847b6af0a1f1c08d3e93
MD5 22135f3d7e147f1b20b3b51a892c2d6c
BLAKE2b-256 e26b116b789bfe5b68b0e8ee0f105f2f637c6f55305fc3ab9df6457bd358ee5b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.9

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

1 file

1.1.0

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page