izderadicka / imap_detach

Command line client for downloading email attachments
13 stars 1 forks source link

feature request: message-id ? #6

Open tee-vee opened 6 years ago

tee-vee commented 6 years ago

Hi,

Just wondering ... (1) would it be possible to add "Message-Id" to the list of variables ? (Use case: fetch by "Message-Id" to ensure working on a specific message ...)

So I'd run a first pass to get a list and store Message-Ids. Then, on a subsequent run ...

me@box1:~ $ detech.py --verbose -h ... -u ... -p ... --folder INBOX 'Message-Id="1234567890@rhs.dom"'

Processing folder INBOX
File "image.jpeg" of type image/jpeg and size 29155 in email "car" from lhs@rhs.dom

(I looked at the source, but only started learning python a month ago. . . I would be happy to help test?)

Many thanks for your consideration and Merry Christmas!