Skip to main content

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

Project description

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

Project details


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.2.8.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

attachment_downloader-1.2.8-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file attachment-downloader-1.2.8.tar.gz.

File metadata

  • Download URL: attachment-downloader-1.2.8.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for attachment-downloader-1.2.8.tar.gz
Algorithm Hash digest
SHA256 de18ebeffa75c1a9dc429faccf1c31485fce728820f105e67abc96ecaf4cd6f8
MD5 5b4bfc018ab5b060a5018533f2dc3ba2
BLAKE2b-256 30c32b9ae8e3a9fda93114953f933ae8ba7ce8c9e443207d8858dfbb1c31c030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for attachment_downloader-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c04343c42003501d18223f8d7c6684346e4eca08c77ebdd7aeedf0d8e04e770b
MD5 fc328b658f4f1e92f852f6e9969e446a
BLAKE2b-256 d9155932742b8ff3bdd3f95b86798e01a5221f8b78ff875d4c5d5d30f935b6f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page