IMAP サーバー拡張の一覧表示
Contents
[
Hide
]
Aspose.Email ImapClient サーバーがサポートする IDLE、UNSELECT、QUOTA などの拡張機能を取得できます。この機能は、特定の機能をクライアントで使用する前に拡張の利用可否を確認するのに役立ちます。 getCapabilities() メソッドは、サポートされている拡張タイプを文字列配列で返します。以下のコードスニペットは、拡張機能を取得する方法を示しています。
// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-Java
// Connect and log in to IMAP
ImapClient client = new ImapClient("imap.gmail.com", "username", "password");
String[] getCapabilities = client.getCapabilities();
for (String getCap : getCapabilities) {
System.out.println(getCap);
}