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.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50d2bbe0ff3de5f6b5e7b4dcfd787135ca004ef82e8c7e5e24384238ab692cf |
|
MD5 | 87e41f9bd29b3ceb3a79d1ae536feded |
|
BLAKE2b-256 | b2833ee7f5384b909d4f731416dfb45c1ef1d8f64ddba00878012949bdef2bf6 |
Close
Hashes for attachment_downloader-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f9e43aabf769dd09501f30b671818fd4be22d87b37734d83ee0dbd425cb4b1 |
|
MD5 | bab449a80d9fb0668c8073de0b8b858d |
|
BLAKE2b-256 | 408ef6d73e7e5560480a378c97d944d17f732df2befe2726ee6e98b12c9e05fa |