added folders_subscribe
[squirrelmail.git] / functions / imap_general.php
index a8cde1dd08a4ee44346a5985dcb2fb4b014bd49a..9bfc1a46885dd299376d6170efb5f5c1576aff40 100755 (executable)
     **  Returns the delimeter between mailboxes:  INBOX/Test, or INBOX.Test... 
     ******************************************************************************/
    function sqimap_get_delimiter ($imap_stream) {
-      fputs ($imap_stream, ". LIST \"\" *\r\n");
+      fputs ($imap_stream, ". LSUB \"\" *\r\n");
       $read = sqimap_read_data($imap_stream, ".", true, $a, $b);
       $quote_position = strpos ($read[0], "\"");
       $delim = substr ($read[0], $quote_position+1, 1);