summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-12-07 14:46:12 -0800
committerKevin McCarthy <kevin@8t8.us>2021-12-07 14:46:12 -0800
commitac348e1959cf04e274ca451781e9cfef366d1bc4 (patch)
treebf90d6e4751178b3f7a98ec971b958df8a3eb0a8
parent9dbde32c5f9437e30e877df0b6a99ab1bb050410 (diff)
parentcc117960fddcd0193ca148927594e1e368cbd745 (diff)
Merge branch 'stable'
-rw-r--r--imap/imap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/imap/imap.c b/imap/imap.c
index 14407b0f..412fe83a 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -869,7 +869,9 @@ static int imap_open_mailbox (CONTEXT* ctx)
if ((rc = imap_cmd_step (idata)) != IMAP_CMD_CONTINUE)
break;
- pc = idata->buf + 2;
+ if (ascii_strncmp (idata->buf, "* ", 2))
+ continue;
+ pc = imap_next_word (idata->buf);
/* Obtain list of available flags here, may be overridden by a
* PERMANENTFLAGS tag in the OK response */