login about faq

I hope you can help with a minor problem I have with IMAP component.
I am running this code:

success = imap.SetMailFlag(email, "Deleted",1);

But, when I am quering for new messages, the mail is still received. This happens until I log into the web interface of my mail provider (one.com). After login, the message is no longer retrieved when I query.

Should I do something else than disconnect after calling the SetMailFlag? Flush cache or similar?

asked May 04 '16 at 08:18

chilkat's gravatar image

chilkat ♦♦

Setting the "Deleted" flag does not remove the email from the mailbox. Emails marked "Deleted" are removed when the Expunge method is called.


answered May 04 '16 at 08:19

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: May 04 '16 at 08:18

Seen: 1,839 times

Last updated: May 04 '16 at 08:19

powered by OSQA