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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443017bc16651da5b1e4fce6b9dadd7f58eb440a483464ec8d86f22999567bd1 |
|
MD5 | 59640aedee1576f65b9a482b08ce1a9c |
|
BLAKE2b-256 | b49685685e5c48a6460f2bc52df80ef5db81080fcc0ebb660c49300bac28c57f |
Close
Hashes for attachment_downloader-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6815fd621b65148989c75c22f8046bd3c17b7b591685a9c720b7093ece338b4d |
|
MD5 | f8bd4041ba6af2dd8c880ca29f1d711e |
|
BLAKE2b-256 | ca6f0069af65698c7a40590499def390f2d79ab77e9dc8742b606d4f3034e37a |