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,
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