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 ♦♦
12.5k317361456


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

link

answered May 04 '16 at 08:19

chilkat's gravatar image

chilkat ♦♦
12.5k317361456

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×187
×3
×1
×1

Asked: May 04 '16 at 08:18

Seen: 545 times

Last updated: May 04 '16 at 08:19

powered by OSQA