IMAP_SELECT
Selects a folder: checks that it exists and stores its name in folder of the variable.
Pass the variable itself, not a calculation, because the function changes it. The functions for messages, IMAP_SEARCH, IMAP_FETCH, IMAP_STORE, IMAP_MOVE and IMAP_EXPUNGE, work in the selected folder.
Parameters and results
serverSTRUCT c0de_net/mail/IMAP_SERVER: a variable with the serverfolderSTRING: the folder (optional, defaultINBOX)- result
resultSTRUCT c0de_net/mail/MAILBOX: its status
Example
c0de
CALL c0de_net/mail/IMAP_SELECT
PARAMETER server imap ;
PARAMETER folder "INBOX" ;
RESULT result box