login about faq

I'm running a bounce cleanup script against a Gmail POP3 account, and the DeleteEmail() method doesn't seem to be removing the email from the account. However, when I run my script again, it doesn't pick up the same emails again - it's as though Gmail knows a message has been accessed via POP3, but it's not getting deleted (I can still see it in the Gmail UI). Any ideas on why this is happening?

asked Sep 01 '12 at 04:08

bluesix's gravatar image


I think you need to change some gmail settings for this to work.



answered Sep 01 '12 at 06:15

Gert's gravatar image

Gert ♦

Thanks. Though I've already checked into that - I only want to delete certain messages via my script - not every message I download via CopyMail(). I'm calling MailMan2's DeleteMail method, which doesn't seem to be working.

(Sep 02 '12 at 05:12) bluesix

If the mailman.ImmediateDelete property is False, then make sure to call Pop3EndSession after all calls to DeleteMail have been made.

Also, it may be helpful to read these Chilkat posts about GMail:

Number of Messages in a POP3 Inbox

Understanding GMail's Behavior

GMail Settings for POP3 and IMAP Access


answered Sep 04 '12 at 10:28

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Sep 01 '12 at 04:08

Seen: 3,428 times

Last updated: Sep 04 '12 at 10:28

powered by OSQA