简体   繁体   English

如何标记在客户端同步到服务器中转发的消息?

[英]How can I mark a message Forwarded in the Client Synchronize to the server?

当我如何在客户端中转发邮件时,邮件状态将为“已转发”,但服务器永远不会具有转发标志

IMAP does not have a concept of "Forwarded", so IMAP does not have a Forwarded flag. IMAP没有“转发”的概念,因此IMAP没有转发标志。 It only has an \\Answered flag which most clients use to denote that the message has been replied to. 它只有一个\\Answered标志,大多数客户端使用该标志来表示邮件已被答复。

If your server supports custom flags, your other IMAP client(s) may be using a custom flag for this (such as "$Forwarded"). 如果您的服务器支持自定义标志,则其他IMAP客户端可能正在为此使用自定义标志(例如“ $ Forwarded”)。 MailKit allows you to set custom flags as well: MailKit还允许您设置自定义标志:

var customFlags = new HashSet<string> ();
customFlags.Add ("$Forwarded");

folder.AddFlags (uids, MessageFlags.None, customFlags, true);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM