RenameIMAPMailFolder (open)

This function will rename a mail folder

Syntax

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

BOOLEAN FUNCTION RenameIMAPMailFolder(INTEGER connectionid, STRING oldpathname, STRING newpathname)

Parameters

INTEGER connectionid

ID of the connection (opened by OpenIMAPAccount)

STRING oldpathname

Old name of the file

STRING newpathname

New name of the file

Return value

BOOLEAN

boolean Indicating if mail folder was succesfully renamed