imap_append_ex
Example: imap_append_ex | Internet Messaging Functions (IMAP) |
Appends a message to the end of a mailbox, for a specific session.
int imap_append_ex( IMAP *ppimap, char *transaction, char *message, char *flag, char *mailbox, ENDITEM, LAST );
ppimap | A session identifier. |
transaction | A transaction name for this step in quotes. To avoid creating a transaction for this step, use a null string, "". |
message | The message string or the name of the file containing the message. When specifying a file, use the following format: "MessageFile=file_name". |
flag |
Flags to apply to the appended message in the following format: "Flags= flag1, flag2, ..." \Seen, \Answered, \Flagged, \Deleted, \Draft, and \Recent.
|
mailbox |
The name of the destination mailbox in the following format: "MAILBOX= mailbox_name" |
ENDITEM | A marker indicating the end of the data item list. Repeat the message, flag, mailbox, and ENDITEM arguments for each set of data that you fetch. |
LAST | A marker indicating the end of the argument list. |
The imap_append_ex function appends a literal expression as a new message to the end of the specified mailbox.
This function is for use with multiple sessions. For global sessions, use the imap_append function, which leaves out the session identifier.
Return Values
If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.
Parameterization
All arguments of this function of the type char, can be parameterized with standard parameterization.