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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e6b48068ead9ee2b4785f9496a67a486a0db6708b3ab2f8e54489fcad7d547f |
|
MD5 | b4d04009e85b070a0d0180bea23dbf8f |
|
BLAKE2b-256 | 927f5e80d24a95c4aba37af2b4207e48d29eb153718826f810efc9813ac09ff1 |
Close
Hashes for attachment_downloader-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40c0db5bceb6c74ef268419603771a9cfaa6b7aadb2677e4e96b03d68372fc49 |
|
MD5 | 5d850f0070c2c08edd74ab139d2272d6 |
|
BLAKE2b-256 | b0d4e4aa061d4baaa6827c07f2e7628b31ccd8a021826e201b11de161fc81ead |