我在我的应用程序中使用 OpenPop.net。此应用程序的作用是从 pop3 帐户下载邮件,保存所有附件(CSV 文件)并处理它们。这个处理需要很多时间。我得到了这个我无法弄清楚的异常:
Exception message: OpenPop.Pop3.Exceptions.PopServerException: The stream used to retrieve responses from was closed
at OpenPop.Pop3.Pop3Client.IsOkResponse(String response)
at OpenPop.Pop3.Pop3Client.SendCommand(String command)
at OpenPop.Pop3.Pop3Client.DeleteMessage(Int32 messageNumber)
在处理 CSV 结束时,邮件将从 pop3 帐户中删除。我相信这就是发生此异常的地方。