Is there a possiblity fo upload all flags with one call of this function? If i'm right i must call this function for each change of each flag.

asked 10 Mar '11, 11:11

martin's gravatar image

martin
745
accept rate: 0%


Yes, this is possible:

C#:

Imap imap = new Imap();
...
imap.SetMessageFlags(id, ImapFlagAction.Replace, ImapMessageFlags.Flagged | ImapMessageFlags.Answered | ImapMessageFlags.Seen);

VB.NET:

Dim imap as New Imap
...
imap.SetMessageFlags(id, ImapFlagAction.Replace, ImapMessageFlags.Flagged Or ImapMessageFlags.Answered Or ImapMessageFlags.Seen)

This will set "Flagged", "Answered" and "Seen" flags on the specified message and remove any other flags.

link

answered 10 Mar '11, 15:27

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

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:

×76
×17

Asked: 10 Mar '11, 11:11

Seen: 418 times

Last updated: 24 Mar '11, 17:22