I cannot search sent emails in Gmail with Python

后端 未结 5 1000
[愿得一人]
[愿得一人] 2020-12-28 20:51

I am trying to search for messages in the Sent (actually i care for both) but I only get incoming messages. For the time being i have

imap_conn.select()
str_         


        
5条回答
  •  情歌与酒
    2020-12-28 21:39

    You need to use: imap_conn.select('[Gmail]/Sent Mail')

    Just wanted to point this out for future users who see this. It's hidden in the comments.

提交回复
热议问题