CopyIMAPEmail (open)

This function will copy an email

Syntax

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

BOOLEAN FUNCTION CopyIMAPEmail(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 copy from

STRING dstmailfolder

Name of the mail folder to copy to

Return value

BOOLEAN

boolean Indicating if the email was copied succesfully