Description
-
Fires when user finishes writing new message.
Syntax
-
Private Sub
object_WriteMessage(User,
Folder, Message,
Action)
The WriteMessage Event syntax has these parts:
object |
A wodImapServer
object. |
User |
An ImapUser object.
Reference to user who wants to write message. |
Folder |
An ImapFolder
object. Reference to folder that holds message. |
Message |
An ImapMessage
object. Reference to message that is written to. |
Action |
An ImapActions
enumeration, as described in settings. Return value you
should fill with either Allow or Deny value, depending
if you will allow user to write message or not. |
Settings
-
The settings for Action are:
|
Deny |
0 |
Deny execution of the
action. |
|
Allow |
1 |
Allow to execute
action. |
Remarks
- After user has created new message (CreateMessage
was fired when that happened), he may start writing to the
message. All of this is most probably done automatically by
his client software. Message contents are sent in chunks -
and as each chunk is received this event is fired to notify
you that there's more data contained in Message.Body -
and you should save it to your storage place. If you are
saving messages to separate files, and you have already set
Message.Filename
- you can just ignore this event.
|