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
Close
Hashes for attachment-downloader-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1601095ebdfcc7f8e0bd9484d43c4121fc7b624520dbc27957b524acd621e634 |
|
MD5 | 18ad5608dd03c7f3dd8c0b4279c67bfa |
|
BLAKE2b-256 | e159e2606058afc0623ed2e138852b278057be8fed846126ae90363ace7ef815 |
Close
Hashes for attachment_downloader-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7908b5e72b83c1bf910f21b55bb07cd1e39615e33a74fa7542d98e64034d85 |
|
MD5 | ccacdecaf1e4e7f70e0ba5474ca8f1e2 |
|
BLAKE2b-256 | c3ab144ffe1fe33a4e3524b6abc4e9a4ed76288abbe5cfc0bd0be425b9391e28 |