IMAP_FETCH
Reads messages of the selected folder.
A UID that doesn't exist is left out. Reading the text marks a message as seen, like a mail program does; with text FALSE, only the other elements are read and the message stays unseen. One call reads at most 100 messages and 1 MiB, or raises RESPONSE_TOO_LARGE.
Parameters and results
serverSTRUCT c0de_net/mail/IMAP_SERVER: the server with the selected folderuidsINTEGER or ARRAY INTEGER: the UIDs of the messagestextBOOLEAN: whether the text is read (optional, default TRUE)- result
resultARRAY STRUCT c0de_net/mail/MAIL: the messages
Example
c0de
CALL c0de_net/mail/IMAP_FETCH
PARAMETER server imap ;
PARAMETER uids uids ;
RESULT result letters