imapfilter icon indicating copy to clipboard operation
imapfilter copied to clipboard

Gmail list_all

Open vstath opened this issue 2 years ago • 1 comments

Hello,

not sure if this is applicable just to Gmail or other mail servers but list_all function returns only the first level only.

I have subfolders (Gmail labels) under e-shops but the "list_all" does not show them. What's the best way to show all the tree structure of my folders? I'm trying to do a recursive backup of my account on disk.

Can I do a "list_all" in my "e-shops" so I can go fetch the messages? I tried a couple things but failed.

Thanks a lot :-)

--

See debug.log below:

102B LIST "" "%"

getting response (5):

  • LIST (\HasNoChildren) "/" "INBOX"
  • LIST (\HasChildren \Noselect) "/" "[Gmail]"
  • LIST (\HasChildren) "/" "e-shops"
  • LIST (
    getting response (5):

HasChildren) "/" "security" 102B OK Success

conversion: '[Gmail]' <- '[Gmail]' conversion: 'e-shops' <- 'e-shops' conversion: 'security' <- 'security' sending command (5):

102C SELECT "INBOX"

getting response (5):

vstath avatar Sep 03 '23 08:09 vstath

Naturally, I found the answer right after I posted.

list_all takes an argument (RTFM)

so I can do list_all("e-shops") and it works fine.

Duh!

vstath avatar Sep 03 '23 09:09 vstath