I cannot search sent emails in Gmail with Python

后端 未结 5 998
[愿得一人]
[愿得一人] 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:48

    Make sure you use the extra quotes in your string:

    imap_conn.select('"[Gmail]/Sent Mail"')  
    

    That worked for me.

提交回复
热议问题