vaefremov95 commented on code in PR #60963:
URL: https://github.com/apache/airflow/pull/60963#discussion_r2736040032


##########
providers/imap/src/airflow/providers/imap/hooks/imap.py:
##########
@@ -240,12 +260,17 @@ def _retrieve_mails_attachments_by_name(
 
         return all_matching_attachments
 
-    def _list_mail_ids_desc(self, mail_filter: str) -> Iterable[str]:
+    def _list_mail_ids_desc(self, mail_filter: str, max_mails: int | None = 
None) -> Iterable[str]:
         if not self.mail_client:
             raise RuntimeError("The 'mail_client' should be initialized 
before!")
         _, data = self.mail_client.search(None, mail_filter)
         mail_ids = data[0].split()
-        return reversed(mail_ids)
+        mail_ids_desc = reversed(mail_ids)

Review Comment:
   @shahar1 
   Hi!
   Can you please say your final word in this?
   Which way is more suitable for airflow?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to