How can I work with poplib when my email has many multiple folders?

166 Views Asked by At

Multiple folders like inbox, dustbin, outbox and so on. The python module poplib seen just searches the inbox.

How can I search all of my email? And can I choose just one of them?

enter image description here

I want to get the number 11818 and the number 611.

1

There are 1 best solutions below

0
Carol Chan On BEST ANSWER

I get the answer. It's my mail server problem. It saved all mails 30days ago into to a folder that storage in cloud. So .list() can't find it. Now, I change the set, the .list() work.