SetFlag |
This API is used to define the status of the mails in a mailbox. To use this API, you must set a valid profile. If not, an 'Authentication Failed' error is thrown.
SOAP Request
<SetFlag xmlns="http://schemas.cordys.com/1.0/email"> <messageId>1</messageId> <folder>INBOX</folder> <flags> <flag name="answered">false</flag> <flag name="deleted">false</flag> <flag name="draft">false</flag> <flag name="flagged">false</flag> <flag name="recent">false</flag> <flag name="seen">false</flag> </flags> </SetFlag>
Request Parameters
Parameter |
Description |
---|---|
messageId |
Specifies the serial number of the mail in the mail box. It is always denoted in the reverse chronological order. Example: The messageId of the oldest mail is 1. |
folder |
Specifies the folder in the mailbox from which the mails must be retrieved. |
flags |
Specifies the status of the messages. |
SOAP Response
<SetFlag xmlns="http://schemas.cordys.com/1.0/email"/>