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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | de18ebeffa75c1a9dc429faccf1c31485fce728820f105e67abc96ecaf4cd6f8 |
|
MD5 | 5b4bfc018ab5b060a5018533f2dc3ba2 |
|
BLAKE2b-256 | 30c32b9ae8e3a9fda93114953f933ae8ba7ce8c9e443207d8858dfbb1c31c030 |
File details
Details for the file attachment_downloader-1.2.8-py3-none-any.whl
.
File metadata
- Download URL: attachment_downloader-1.2.8-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04343c42003501d18223f8d7c6684346e4eca08c77ebdd7aeedf0d8e04e770b |
|
MD5 | fc328b658f4f1e92f852f6e9969e446a |
|
BLAKE2b-256 | d9155932742b8ff3bdd3f95b86798e01a5221f8b78ff875d4c5d5d30f935b6f8 |