Listing IMAP Server Extensions
Contents
[
Hide
]
Listing Server Extensions
Aspose.Email’s ImapClient lets you retrieve the server extensions that a server supports such as IDLE, UNSELECT,QUOTA, etc. This helps in identifying the availability of an extension before using the client for that particular functionality. The GetCapabilities() method returns the supported extension types in the form of a string array. The following code snippet shows you how to retrieve extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For complete examples and data files, please go to https://github.com/aspose-email/aspose-email-python-dotnet | |
with ImapClient("imap.gmail.com", 993, "username", "password") as client: | |
capabilities = client.get_capabilities() | |
for val in capabilities: | |
print(val); |