diff --git a/inbox/mailsync/backends/imap/generic.py b/inbox/mailsync/backends/imap/generic.py index ca2d1ad4f..134530e37 100644 --- a/inbox/mailsync/backends/imap/generic.py +++ b/inbox/mailsync/backends/imap/generic.py @@ -821,6 +821,9 @@ def batch_remote_and_local_uids( *, batch_size: int = UID_BATCH_SIZE, ) -> "Iterable[tuple[set[int], set[int]]]": + yield set(), set() + return + for end in range(max(remote_uidnext, local_uidnext) - 1, 0, -batch_size): start = max(end - batch_size + 1, 1) with self.global_lock: