Skip to main content

Get-Folder-List-of-Mailbox

Command Description

Connect according to the specified IMAP. Get the system folder in mailbox and my folder list

Command Prototype

arrayRet = IMAP.GetFolderList(objIMAP, bOriFolderInfo)

Parameter Description

ParameterRequiredTypeDefaultDescription
objIMAPTrueexpressionobjIMAPThe controllable connection object returned by the "connect mailbox" command
bOriFolderInfoTruebooleanNoneBecause the original messages returned by different mailbox servers are different, if yes is selected, the original message will be returned directly; otherwise, the mailbox folder information extracted based on certain extraction rules will be returned

return

arrayRet,The variable used to save the output of the command.

Demo

arrayRet = IMAP.GetFolderList(objIMAP, false) 
TracePrint(arrayRet)
/*
[
"Other folders",
"INBOX",
"Sent Messages"
]
*/