Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SubscribeToAllFolders attribute to subscription requests #1243

Closed
ecederstrand opened this issue Oct 30, 2023 Discussed in #1242 · 3 comments
Closed

Implement SubscribeToAllFolders attribute to subscription requests #1243

ecederstrand opened this issue Oct 30, 2023 Discussed in #1242 · 3 comments

Comments

@ecederstrand
Copy link
Owner

Pull, Push and Streaming subscription requests support a SubscribeToAllFolders attribute. See
https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/pullsubscriptionrequest, https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/pushsubscriptionrequest, https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/streamingsubscriptionrequest

exchangelib should support that flag. Possibly as the default if the subscription is created from Account.root.

Discussed in #1242

Originally posted by CubePirate October 30, 2023
I can't seem to figure out how to create a stream subscription for all folders, does the library support it?
I know EWS does support it, via "<StreamingSubscriptionRequest SubscribeToAllFolders="">"
See https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/streamingsubscriptionrequest

@ecederstrand
Copy link
Owner Author

Fixed by #1244

@CubePirate
Copy link

Wow! That was fast. Thanks Erik!

@ecederstrand
Copy link
Owner Author

You're welcome! You can now call the subscription methods directly on the Account object, e.g. some_account.subscribe_to_pull(). That should create a subscription on all folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants