jamesridgway / attachment-downloader

Simple tool for downloading email attachments for all emails in a given folder using an IMAP client
MIT License
85 stars 39 forks source link

Cannot Access GMail "Subfolders" #21

Closed thesec closed 2 years ago

thesec commented 3 years ago

Trying to access any of GMail's "subfolders" fails. It seems this is due to GMail not using a actual folder structure but labels?

How to download attachments from a GMail label which would show up in GMail's search e.g. as "label:some-weird-thingies-going-on"?

thesec commented 3 years ago

Hmmh, the error seems to originate from the filtering?

Traceback (most recent call last):
  File "/usr/local/bin/attachment-downloader", line 138, in <module>
    messages = mail.messages(**filter_options)
...

Happens with subfolder name passed having blanks 'firstFolder/second Folder'.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.