DeleteMessage Method
Deletes a message from the server-side mailbox.
Syntax
ANSI (Cross Platform) int DeleteMessage(int iIndex); Unicode (Windows) INT DeleteMessage(INT iIndex);
- (void)deleteMessage:(int)index;
#define MID_POP3CLIENT_DELETEMESSAGE 4 SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_POP3Client_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
Call this method to delete a message from the mailbox.
Note that the message may not be deleted immediately. It is typical for POP3 servers to only mark messages for deletion upon receipt of this command, and only delete them after the connection has been gracefully closed.
If needed, messages can be "undeleted" during the same session by calling the Undelete method.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)