Processing a Sent Message

Outgoing messages, after they have been sent, can be left in the Outbox folder, moved to a folder designated to hold sent messages, or deleted. The type of processing depends on whether or not you have set the message store properties:

PR_DELETE_AFTER_SUBMIT

PR_SENTMAIL_ENTRYID

PR_DELETE_AFTER_SUBMIT is a Boolean property, set to TRUE if messages should be deleted after they are sent, and FALSE otherwise. PR_SENTMAIL_ENTRYID is the entry identifier of a folder. When this property is set, you should move sent messages to the folder represented by this entry identifier. The saved messages typically have the identity of the last message store or transport provider to send them.

Any combination of these properties can be set — both, neither, or one or the other. However, if you set PR_SENTMAIL_ENTRYID, it must contain a valid entry identifier.

The following table describes how these properties affect what you do with sent messages.

If neither property is set: Leave the message in the folder from which it was sent (typically the Outbox).
If both properties are set: Move the message to the indicated folder, if desired, and then delete it.
If PR_SENTMAIL_ENTRYID is set: Move the message to the indicated folder.
If PR_DELETE_AFTER_SUBMIT is set: Delete the message.