0

I am looking for a way to query o365 inboxes with both search and date ranges.

The API ignores the date ranges all together and referring only to the search query.

Currently I am using this code:

query:Query = mailbox.new_query()

query.search("('nyt' or 'wsj')")

query.chain('and').on_attribute('created_date_time').greater(datetime.datetime(2020, 3, 21))

query.chain('and').on_attribute('created_date_time').less(datetime.datetime(2021, 3, 21))
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
yople
  • 1
  • 2

0 Answers0