OpenPop pop3客户端不能获取超过355条消息?

时间:2015-05-07 11:46:30

标签: c# pop3 openpop

我正在使用OpenPop.net中的示例,我似乎只收到355条消息。

using(Pop3Client client = new Pop3Client())
{
    // Connect to the server
    client.Connect(hostname, port, useSsl);

    // Authenticate ourselves towards the server
    client.Authenticate(username, password);

    // Get the number of messages in the inbox
    int messageCount = client.GetMessageCount();

    // We want to download all messages
    List<Message> allMessages = new List<Message>(messageCount);

    // Messages are numbered in the interval: [1, messageCount]
    // Ergo: message numbers are 1-based.
    // Most servers give the latest message the highest number
    for (int i = messageCount; i > 0; i--)
    {
        allMessages.Add(client.GetMessage(i));
    }

    // Now return the fetched messages
    return allMessages;
}

你们有没有遇到过这个问题?我找不到关于这个问题的其他帖子,所以我想知道是否有一些明显我错过了。

0 个答案:

没有答案
相关问题