SetIMAPEmailFlags (open)
This function will switch a specific flag on or off
Syntax
LOADLIB "wh::internet/imap.whlib";
BOOLEAN FUNCTION SetIMAPEmailFlags(INTEGER connectionid, STRING mailbox, INTEGER uid, STRING flag, BOOLEAN setflag)Parameters
INTEGER connectionidID of the connection (opened by OpenIMAPAccount)
STRING mailboxINTEGER uidSTRING flagFlag to set (or reset)
BOOLEAN setflagSet to TRUE to set flag, FALSE to reset.
Return value
BOOLEANboolean Indicating if the flag was updated succesfully