OverwriteIMAPEmailFlags

This function will overwrite all flags for an email

Syntax

LOADLIB "wh::internet/imap.whlib";

BOOLEAN FUNCTION OverwriteIMAPEmailFlags(INTEGER connectionid, STRING mailbox, INTEGER uid, STRING ARRAY flags)

Parameters

INTEGER connectionid

ID of the connection (opened by OpenIMAPAccount)

STRING mailbox
INTEGER uid
STRING ARRAY flags

Flags to set. All other flags arre cleared

Return value

BOOLEAN

boolean Indicating if the flag was updated succesfully