Move-Mail
Command Description
Move the specified email to the mailbox folder. Return true if it succeeds. Return false if it fails
Command Prototype
bRet = IMAP.MoveMail(objIMAP,sFolder,objMail)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objIMAP | True | expression | objIMAP | The controllable connection object returned by the "connect mailbox" command |
sFolder | True | string | "" | The mail messages will be moved to the mailbox folder |
objMail | True | expression | objMail | Email object to be moved |
return
bRet,The variable used to save the output of the command.
Demo
arrayRet = IMAP.GetMailList(objIMAP,"Inbox",5,false,false,"")
bRet = IMAP.MoveMail(objIMAP,"other folders",arrayRet[0])
TracePrint bRet
// True