c0de net 0.4.0Diese Seite auf Deutsch

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

  • server STRUCT c0de_net/mail/IMAP_SERVER: a variable with the server
  • folder STRING: the folder (optional, default INBOX)
  • result result STRUCT c0de_net/mail/MAILBOX: its status

Example

c0de
CALL c0de_net/mail/IMAP_SELECT
    PARAMETER server imap ;
    PARAMETER folder "INBOX" ;
    RESULT result box

Used in the tutorials ​