I am filtering a fairly large inbox using exchangelib. I only want to look at emails that have attachments.
I tried to add the attachments=True clause in the filter but it does not work. Below is my code. Could someone tell me what is the correct way of doing this?
account.inbox.filter(datetime_received__range=(start_time, end_time), sender=some_sender, attachments=True)