Download attachments from IMAP server using Python script
Segun la versión de Pyhon que tengamos instalada, se ejecuta el siguiente comando en terminal.
$ pip install attachment-downloaderEn mi caso, tengo Python3.
$ pip3 install attachment-downloaderPara realizar la descarga debemos especificar los siguientes parametros
$ attachment-downloader --host imap.example.com --username mail@example.com --password pa55word \\
--imap-folder invoices --output ~/Downloads