Skip to content

Commit

Permalink
Cyrus::AccountSync - skip any mailbox that went away during fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Oct 19, 2023
1 parent 505119a commit 529c0b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perl/imap/Cyrus/AccountSync.pm
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ sub dump_user {
for my $folder (@{$info->{MAILBOX}}) {
next if $folder->{MBOXTYPE}; # don't dump special folders
my $fi = $self->{sync}->dlwrite("GET", "FULLMAILBOX", $folder->{MBOXNAME});
next unless $fi->{MAILBOX}; # folder went away?
my @emails;
for my $record (@{$fi->{MAILBOX}[0]{RECORD}||[]}) {
my $res = $self->{sync}->dlwrite("GET", "FETCH", {
Expand Down

0 comments on commit 529c0b8

Please sign in to comment.