Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75803
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!83.149.209.203.MISMATCH!news.mi.ras.ru!goblin1!goblin.stu.neva.ru!news.astraweb.com!border5.a.newsrouter.astraweb.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <elearn2014@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.072 |
| X-Spam-Evidence | '*H*': 0.86; '*S*': 0.00; 'subject:not': 0.03; 'type,': 0.09; 'python': 0.11; 'subscripted': 0.16; 'import': 0.22; 'header:User-Agent:1': 0.23; 'them?': 0.31; 'skip:c 30': 0.32; 'open': 0.33; 'subject:with': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'email addr:python.org': 0.37; 'received:10': 0.37; 'message- id:@gmail.com': 0.38; 'gmail': 0.38; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'account': 0.65; 'email name:python-list': 0.65; ',the': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=BQWvkpoFDAvgIDYy6kRl2nmE8bNcwsYhEgBw2IVb0xw=; b=pKklk1RaMttErjMExXJVxMdFD7WgpUHW14WEZ1XTtH3vcUz1EZAeQntgEl3Uo1EI+a rX2DmhJxXSaCw9PMv3nB22I8tSMe2szXPWvOWjwde/D8Y0VYrZwTLJtoCgjgt6JTBofg b3N3nF5SAULUfQk3D6YVpI/D3KHlePzSa/j1V5g5q9pZG3aK4ae5E4sx5MKlGFVnK4o4 JKQ/b0XIrtN40DDjEa0DvZYzUVfluee8xahOONtQKLjiGAi68McbCvFBx+6IilvZ5fu7 A/RKZPpPgtep5+5jNrBWu9JY3e1AMpRsDkQyHYoBduMUQJsM1JPczrgijqtTYsVF73fA hWqw== |
| X-Received | by 10.70.130.12 with SMTP id oa12mr11404582pdb.123.1407333811616; Wed, 06 Aug 2014 07:03:31 -0700 (PDT) |
| Date | Wed, 06 Aug 2014 22:03:22 +0800 |
| From | elearn <elearn2014@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | why i can not delete my email with imaplib? |
| Content-Type | multipart/mixed; boundary="------------030905080604000607010307" |
| X-Mailman-Approved-At | Wed, 06 Aug 2014 16:43:40 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12703.1407336221.18130.python-list@python.org> (permalink) |
| Lines | 1548 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407336221 news.xs4all.nl 2899 [2001:888:2000:d::a6]:40857 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75803 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I have a gmail account 'xxx@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="yyyyyy"
con=imaplib.IMAP4_SSL('imap.gmail.com')
con.login(user,password)
con.select('[Gmail]/&YkBnCZCuTvY-')
type, data= con.search(None, "All")
type1, data1= con.search(None, '(TO "python-list@python.org")')
ids_all= set(data[0].split())
ids1=set(data1[0].split())
ids_deleted=set(ids_all-ids1)
for numin ids_deleted:
con.store(num, '+FLAGS', '\\Deleted')
con.expunge()|
When i open my gmail with thunderbird ,the emails which are sent to
python-list@python.org are still in my gmail,Why i can't delete them?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
why i can not delete my email with imaplib? elearn <elearn2014@gmail.com> - 2014-08-06 22:03 +0800
csiph-web