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 connectionid

ID of the connection (opened by OpenIMAPAccount)

STRING mailbox
INTEGER uid
STRING flag

Flag to set (or reset)

BOOLEAN setflag

Set to TRUE to set flag, FALSE to reset.

Return value

BOOLEAN

boolean Indicating if the flag was updated succesfully