2

is it possible push notification in exchangelib ? I tried get email in inbox and trigger my function,thats is it available exchangelib

onuryartasi
  • 587
  • 2
  • 6
  • 13

1 Answers1

1

exchangelib doesn't support EWS push notifications yet, unfortunately. There's a PR open which implements some of the functionality: https://github.com/ecederstrand/exchangelib/pull/355

For now, you'll have to do a regular client-side pull:

has_email = account.inbox.filter(subject='Some Trigger Value').exists()
Erik Cederstrand
  • 9,643
  • 8
  • 39
  • 63