aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-07-28 12:31:49 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-07-28 12:32:52 +0200
commit5f2e99687c3d04f8a4e177995192c4a6f4a27478 (patch)
treec0f16ede92fa80875b6f67f40fd4705a1fe7afec /imapsync
parentebeb0ba4c5cf3a6faccade5459db897ab7e50ecb (diff)
Don't set to a ignored mailbox.
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync2
1 files changed, 1 insertions, 1 deletions
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;