func X3.EN_IMAP_LIST_DIRECTORIES(Char FILTER_IN, Char LOGIN_IN, Char PASS_IN, Char IMAP_SERVER_IN, Integer IMAP_PORT_IN, Char IMAP_SECURITY_IN, Char() DIRECTORIES_OUT) : Integer

Allows you to retrieve the list of folders from an email box

  • FILTER_IN Char Possible filter on the folders (Ex: "customer" > Returns only the folders containing "customer")
  • LOGIN_IN Char Contains the login for the SMTP connection (and possibly IMAP)
  • PASS_IN Char Contains the password for the SMTP connection (and IMAP if necessary)
  • IMAP_SERVER_IN Char Contains the address of the IMAP server
  • IMAP_PORT_IN Integer Contains the port number of the IMAP server (153, 993, ...)
  • IMAP_SECURITY_IN Char Contains the IMAP server security ("SSL", "TLS", "")
  • DIRECTORIES_OUT Char() Array containing the names of the directories
Return Integer 0 or the number of directories found
Example

Local Char DOSSIERS(255)(50)
Infbox num$(func X3.EN_IMAP_LIST_DIRECTORIES("",
& "lvexpertisex3",
& "ThisIsMichelMyPassword",
& "imap.lvexpertisex3.com",
& 993,
& "SSL",
& DOSSIERS))