From 5f2e99687c3d04f8a4e177995192c4a6f4a27478 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 28 Jul 2015 12:31:49 +0200 Subject: [PATCH] Don't set to a ignored mailbox. --- imapsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapsync b/imapsync index cc34287..ae05163 100755 --- a/imapsync +++ b/imapsync @@ -987,8 +987,8 @@ sub wait_notifications(;$) { my ($MAILBOX, $IDX); $STH_LIST_INTERRUPTED->execute(); while (defined (my $row = $STH_LIST_INTERRUPTED->fetchrow_arrayref())) { + next unless grep { $_ eq $row->[1] } @MAILBOXES; # skip ignored mailbox ($IDX, $MAILBOX) = @$row; - next unless grep { $_ eq $MAILBOX } @MAILBOXES; msg(undef, "Resuming interrupted sync for $MAILBOX"); my %lUIDs; -- 2.39.2