MailBoxDeleteMsg

sql

FUNCTION MailBoxDeleteMsg(IN mailbox HANDLE, IN id INT, IN delrec BOOLEAN) RETURNS INT;

Parameters

mailbox handle of the mailbox
id letter identifier
delrec flag, whether the files about the letter and its attachments in the database should be deleted

Since version

6.0f

Description

Deletes a letter in the mailbox (selected in the profile) of the mailing system. If the remote Mail602 client or POP3 client is used for mails, the request to delete the letter at the mailing service will also be sent.

If delrec equals TRUE, also the records from the tables _INBOXMSGS and _INBOXFILES containing this letter will be deleted.

Function value:

This function returns 0 if successful, the error number otherwise.

See