Sim*_*onJ 17
通过IMAP删除电子邮件分两个阶段执行:
imap.store(msg_no, '+FLAGS', '\\Deleted')imap.expunge()(imap是你的IMAP4对象)
imap.uid('STORE', list_of_msgno , '+FLAGS', '(\Deleted)')
imap.expunge()
Run Code Online (Sandbox Code Playgroud)
即
imap.uid('STORE', '2, 4, 9, 12' , '+FLAGS', '(\Deleted)')
Run Code Online (Sandbox Code Playgroud)
以下(2, 4, 9, 12)是uid要删除的消息.
| 归档时间: |
|
| 查看次数: |
18549 次 |
| 最近记录: |