Setting message flags

Top  Previous  Next

You can set the flags for one or more messages using the Store methods.

 

The following table lists the Flags and their description.

 

Flag

Description

\Seen

The message has been read.

\Answered

The message has been replied to.

\Flagged

The message is flagged for attention.

\Deleted

The message has been marked for deletion.  Message will not be deleted until the Expunge method is invoked.

\Draft

The message is a draft message.

\Recent

The current session is the first session presented with this message.

 

 

Example 1

 

This example adds the \Answered flag for messages 1 through 10 to the existing flags.

 

[C#]

myImap.Store(1, 10, Imap.FLAG_MODE_ADD, Imap.FLAG_ANSWERED);

 

[Visual Basic]

myImap.Store(1, 10, Imap.FLAG_MODE_ADD, Imap.FLAG_ANSWERED)

 

 

Example 2

 

This example overwrites all flags with the \Answered flag for messages 1 through 10.

 

[C#]

myImap.Store(1, 10, Imap.FLAG_MODE_REPLACE, Imap.FLAG_ANSWERED);

 

[Visual Basic]

myImap.Store(1, 10, Imap.FLAG_MODE_REPLACE, Imap.FLAG_ANSWERED)

 

 

Example 3

 

This example removes the \Answered flag for messages 1 through 10 from the existing flags.

 

[C#]

myImap.Store(1, 10, Imap.FLAG_MODE_DELETE, Imap.FLAG_ANSWERED);

 

[Visual Basic]

myImap.Store(1, 10, Imap.FLAG_MODE_DELETE, Imap.FLAG_ANSWERED)

 

 

 

 

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC