why i can not delete my email with imaplib?

2014-08-06 Thread elearn
I have a gmail account 'x...@gmail.com' which subscripted python maillist. I want to delete any emails which is sent to python-list@python.org . |import imaplib user=xxx password=yy con=imaplib.IMAP4_SSL('imap.gmail.com') con.login(user,password) con.select('[Gmail]/YkBnCZCuTvY-') type,

Re: why i can not delete my email with imaplib?

2014-08-06 Thread Skip Montanaro
My apologies. I must be dense. Why do you want to do this from Python? Can't you accomplish the same thing more easily with a Gmail filter which deletes all messages sent to python-list@python.org? Also, I assume that if you use x...@gmail.com only so you can send mail to the list, why not just