X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_mailbox.php;h=422638ed3193150b8a06adb94ac9cfce9ade72ad;hb=5218b2823717b3d99bfbe440df933ff1795203e9;hp=ee858ed5d9fdf8bd11387ee4dccd9bb1beda7a56;hpb=04632dbcbdd2793b533c66df10ba321441d03c2f;p=squirrelmail.git diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index ee858ed5..422638ed 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -12,6 +12,7 @@ sqimap_mailbox_select ($imap_stream, $mailbox); fputs ($imap_stream, "a001 EXPUNGE\r\n"); $read = sqimap_read_data($imap_stream, "a001", true, $response, $message); + sqimap_mailbox_close ($imap_stream); } @@ -30,8 +31,14 @@ } } + /****************************************************************************** + ** Closes an open mailbox + ******************************************************************************/ + function sqimap_mailbox_close ($imap_stream) { + fputs ($imap_stream, "a001 CLOSE\r\n"); + $tmp = sqimap_read_data($imap_stream, "a001", false, $response, $message); + } - /****************************************************************************** ** Selects a mailbox ******************************************************************************/