How to delete letters automatically with imaplib?

2014-08-06 Thread elearn
I have a gmail account 'x...@gmail.com' which subscripted python maillist. To take part in python discussion is the only target for my x...@gmail.com. There are so many emails in my x...@gmail.com,it is a good idea for me to auto delete all emails whose body contain no . I write some codes to

Re: How to delete letters automatically with imaplib?

2014-08-06 Thread Ben Finney
elearn elearn2...@gmail.com writes: status, data= con.search(None, ALL) print(len(data[0].split())) 48 typ, data= con.search(None, 'Body', 'x...@gmail.com') data [b'1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 32 33 34 35 36 37 44']

Re: How to delete letters automatically with imaplib?

2014-08-06 Thread elearn
and how to write the delete command with imaplib? On 8/6/2014 5:14 PM, Ben Finney wrote: elearn elearn2...@gmail.com writes: status, data= con.search(None, ALL) print(len(data[0].split())) 48 typ, data= con.search(None, 'Body', 'x...@gmail.com') data [b'1 2 3 4 5 6 7 8 9 10 11 12 13

Re: How to delete letters automatically with imaplib?

2014-08-06 Thread Ben Finney
elearn elearn2...@gmail.com writes: and how to write the delete command with imaplib? (Please don't top-post. Instead, compose your responses interleaved URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style so the conversation is easier to follow in the message.) I'm not familiar