Description
-
Fires when user changes message flag.
Syntax
-
Private Sub
object_FlagChange(User, Folder,
Message, NewFlags,
OldFlags)
The FlagChange Event syntax has these parts:
object |
A wodImapServer
object. |
User |
An ImapUser object.
Reference to user who changed flags. |
Folder |
An ImapFolder
object. Reference to Folder where message is
stored. |
Message |
An ImapMessage
object. Reference to Message whose flags are
changed. |
NewFlags |
An
ImapMessageFlags enumeration, as described in
settings. Combination of new flags set for the
message. |
OldFlags |
An
ImapMessageFlags enumeration, as described in
settings. Combination of flags as they were previously
set. |
Settings
-
The settings for OldFlags and NewFlags
are:
|
Flagged |
1 |
Message is flagged. |
|
Seen |
2 |
Message is already
seen. |
|
Answered |
4 |
Message is already
answered. |
|
Deleted |
8 |
Message is deleted. |
|
Draft |
16 |
Draft message. |
|
Recent |
32 |
Message is recently added
to mailbox. |
Remarks
- This event is fired when flags for the message change.
You don't have to do anything in your code because new
flags are kept in Message object and will be stored there as
long as user is connected (so proper flags will be returned
to user when he requests their list). However, you might want
to store this change to disk (or wherever you keep message
flags between sessions) so that when user disconnects you
don't have to do this recursively.
You can always access Message.Flags
property to determine flags for the message.
|