diff --git a/zerver/management/commands/email_mirror.py b/zerver/management/commands/email_mirror.py index d3577bb3eb..d114ed52ad 100644 --- a/zerver/management/commands/email_mirror.py +++ b/zerver/management/commands/email_mirror.py @@ -51,7 +51,7 @@ def get_imap_messages() -> Generator[Message, None, None]: try: mbox.select(settings.EMAIL_GATEWAY_IMAP_FOLDER) try: - status, num_ids_data = mbox.search(None, 'ALL') # type: ignore # https://github.com/python/typeshed/pull/1762 + status, num_ids_data = mbox.search(None, 'ALL') for msgid in num_ids_data[0].split(): status, msg_data = mbox.fetch(msgid, '(RFC822)') msg_as_bytes = msg_data[0][1]