diff --git a/mail-filter.py b/mail-filter.py index 123554c..2dbbfd2 100644 --- a/mail-filter.py +++ b/mail-filter.py @@ -127,8 +127,8 @@ class O365MailFilter(object): inbox = mailbox.inbox_folder() # set limit to max allowed by O365, which is 999 messages - # we have to explicitly set a limit value or the O365 library will not - # paginate results correctly + # we have to explicitly set a limit value when calling get_messages() or + # the O365 library will not paginate results correctly limit = self._account.protocol.max_top_value query = inbox.new_query() query = query.on_attribute('isRead').equals(False).select(