]> git.g-eek.se Git - interimap.git/commitdiff
Don't set to a ignored mailbox.
authorGuilhem Moulin <guilhem@fripost.org>
Tue, 28 Jul 2015 10:31:49 +0000 (12:31 +0200)
committerGuilhem Moulin <guilhem@fripost.org>
Tue, 28 Jul 2015 10:32:52 +0000 (12:32 +0200)
imapsync

index cc34287b8c6d816740e5b2b5b1ef35476eb216de..ae051639eae13b590c8db00551fd93ec57a30b0f 100755 (executable)
--- 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;