MoveIMAPEmail (open)

This function will move a mail folder

Syntax

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

BOOLEAN FUNCTION MoveIMAPEmail(INTEGER connectionid, INTEGER uid, STRING srcmailfolder, STRING dstmailfolder)

Parameters

INTEGER connectionid

ID of the connection (opened by OpenIMAPAccount)

INTEGER uid

UID of the mail message to copy

STRING srcmailfolder

Name of the mail folder to move from

STRING dstmailfolder

Name of the mail folder to move to

Return value

BOOLEAN

boolean Indicating if the email was moved succesfully