diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-07-30 00:39:58 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-07-30 00:44:03 +0200 |
commit | d1c7440ee9c925e036472044c74b3b8d9268cd99 (patch) | |
tree | fc86916c35b4a9a4f637deb744e37527bbfddbad | |
parent | 483073796c9e3b14deed5b24afdb029ca0e9a48c (diff) |
Don't initialize cache for ignore mailboxes.
-rwxr-xr-x | imapsync | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1041,6 +1041,7 @@ while (defined (my $row = $STH_LIST_INTERRUPTED->fetchrow_arrayref())) { my %KNOWN_INDEXES; $STH_GET_CACHE->execute(); while (defined (my $row = $STH_GET_CACHE->fetchrow_hashref())) { + next unless grep {$row->{mailbox} eq $_} @MAILBOXES; $lIMAP->set_cache($row->{mailbox}, UIDVALIDITY => $row->{lUIDVALIDITY}, UIDNEXT => $row->{lUIDNEXT}, @@ -1061,7 +1062,7 @@ if (defined $COMMAND and $COMMAND eq 'repair') { while(1) { - while(1) { + while(@MAILBOXES) { my $cache; my $update = 0; if (defined $MAILBOX and ($lIMAP->is_dirty($MAILBOX) or $rIMAP->is_dirty($MAILBOX))) { |