c# - 使用 OpenPop.NET 删除时移动到垃圾箱
问题描述
我正在尝试使用 pop3Client 从邮箱中删除邮件,但邮件已从邮箱中永久删除,我们是否有任何选项可以在删除时在垃圾箱中显示邮件。
我的代码:
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();
//My logic
client.DeleteAllMessages();
}
解决方案
推荐阅读
- python - 这个正则表达式的正确术语是什么?
- ionic-framework - 为什么 ionic APK for android 在 build/outputs/apki/debug/ 文件夹下生成并且它没有在设备中打开?
- c# - KeyVaultClient 在调试时随机抛出 FatalExecutionEngineError
- javascript - 如何使用 Cloud 函数从 Cloud Firestore 触发器中的顶级文档访问数据?
- python - ReadFromText 中的 validate 参数在 GCP 上不起作用
- xml - 无法使用 XPath 在 XML 中获得成功
- java - 如何正确抛出运行时异常并重启 docker 容器
- javascript - 变量值更新将值更改为 null
- javascript - 如何将 ECDH 密钥对的原始表示形式转换为 JSON Web 密钥?
- odoo - 安装模块后正常字段没有更新吗?