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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b9621affb32df2289f9072374e28f3325156b012a02fb2e56c310d5adec937
|
|
| MD5 |
650bff21818706829376fe0710a7ca13
|
|
| BLAKE2b-256 |
e749152d70575d11c3572f635fcb800ed761236f1b6244b089d90070223687d3
|
File details
Details for the file attachment_downloader-1.3.0-py3-none-any.whl.
File metadata
- Download URL: attachment_downloader-1.3.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d40099b32a1a82871712b59afecc217b370ebf9dd8da847b6af0a1f1c08d3e93
|
|
| MD5 |
22135f3d7e147f1b20b3b51a892c2d6c
|
|
| BLAKE2b-256 |
e26b116b789bfe5b68b0e8ee0f105f2f637c6f55305fc3ab9df6457bd358ee5b
|