1

ImapX を使用してメール アカウントのフォルダーを取得できません。

 ImapX.ImapClient m_ImapClient = new ImapX.ImapClient( ImapServerAddress, (int) ImapServerPort, System.Security.Authentication.SslProtocols.Ssl3, false);
 m_ImapClient.Connect();
 m_ImapClient.Login( EmailAddress, EmailPassword);
//the two functions above each return true
//this last statement throws an exception:
ImapX.Collections.FolderCollection vFolders = m_ImapClient.Folders;

そしてそれは:

'm_ImapClient.Folders' threw an exception of type 'System.NullReferenceException' ImapX.Collections.CommonFolderCollection {System.NullReferenceException}

IMAP、ssl、ポート 993 を使用しています。ImapX 2.これは 993 の imap.google.com では機能しますが、別のネットワーク サーバーでは機能しません。

4

1 に答える 1

0

この問題は修正されました。ありがとうございます。詳細については、「問題: IMAP サーバーに正常にログインした後、メール フォルダーを取得できない」を参照してください。この問題は、IMAPX サーバーから返されたフォルダーに関する情報の解析中に発生しました。一部のサーバーは、フォルダー名を引用しません。

于 2013-09-25T17:10:45.080 に答える