pythonemailpoplib

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


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.


Solution

  • 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.