isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 8c86f34bf0e23c719bdbe69714a48536eb26597c
parent 32392adbe3fd349e18d282a4e73208c32d6bfd1b
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 14 Feb 2021 23:06:24 +0100

fix bogus continuation of IMAP list parsing

on error, parse_imap_list() needs to reset the nesting level in the
state, as imap_socket_read() uses that as an indicator whether list
parsing is ongoing.

Diffstat:
Msrc/drv_imap.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -924,6 +924,7 @@ parse_imap_list( imap_store_t *ctx, char **sp, parse_list_state_t *sts ) } bail: free_list( sts->head ); + sts->level = 0; return LIST_BAD; }