IMAP_SERVER
A struct type with the connection to a server with mailboxes.
Declare it with VARIABLE imap STRUCT c0de_net/mail/IMAP_SERVER. server and user are needed.
serverSTRING: the server name, like imap.example.comportINTEGER: 1 to 65535, or 0 for 993 withtlsand 143 otherwise (default 0)securitySTRING:tls(the default for an empty text),starttlsornoneuserSTRING: the user namepasswordSTRING: the password, sensitive like the one of SMTP_SERVERtimeoutINTEGER: as for SMTP_SERVERskip_ssl_validationBOOLEAN: as for SMTP_SERVERfolderSTRING: the selected folder; IMAP_SELECT sets it
Example
c0de
VARIABLE imap STRUCT c0de_net/mail/IMAP_SERVER
ASSIGN imap.server "imap.example.com" ;
ASSIGN imap.user "steve@example.com" ;
ASSIGN imap.password password ;