From: Guilhem Moulin Date: Tue, 28 Jul 2015 10:31:49 +0000 (+0200) Subject: Don't set to a ignored mailbox. X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=5f2e99687c3d04f8a4e177995192c4a6f4a27478;p=interimap.git Don't set to a ignored mailbox. --- 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;