.NET 电子邮件处理建议
我似乎找不到一个与我正在寻找的问题完全或接近的问题,因此我为什么要写一个新问题。
我需要一些关于构建 Windows 服务的建议,该服务读取 IMAP 服务器中已从我正在构建的系统发送的初始电子邮件中回复的电子邮件。
我想知道 MIME 标头中是否有某个地方我无法存储,例如来自数据库记录的 RequestID,我可以引用它,这样我就可以自动让我的服务读取所有 emals,并分配回复电子邮件的请求的电子邮件。
有人对我如何做到这一点有任何想法吗?
我知道服务台/帮助台行业已经完成了这项工作,只是想制定我的行动计划以使其正常工作。
谢谢
罗比
I cant seem to find a question that is exactly or close to what im looking for so hence why i am writing a new one.
I need some advice in regards to building a Windows Service that reads an IMAP Server for emails that have been replied to from an initial email that a system i am building sends out.
I am wondering if there is somewhere in the MIME header that i cant store say for example a RequestID from a database record in there, that i am able to reference, so i can automatically get my service to read through all the emals, and allocate the email to the Request that the email was replied from.
Does anyone have any ideas on how i can do this?
I know it is done out there in the ServiceDesk/HelpDesk Industry, just trying to work out my plan of action to get this to work correctly.
Thanks
Robbie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
主题行是迄今为止用于电子邮件中相关 ID 的最可靠字段,因为大多数电子邮件客户端默认将其包含在回复中。 GUIDS 可能有点不用户友好(更不用说占用主题行上的宝贵空间)。因为您可以控制原始消息,所以重要的是您可以使用外发消息生成唯一的 ID。
如果您有多个发件人,您的唯一 ID 可以由发件人标识符、发送时间和/或顺序 ID 组成。您必须准备好处理无法至少通过手动流程与源关联的消息。
The subject line is by far the most reliable field to use for a correlation ID in e-mail, as it will be included by default in replies by most e-mail clients. GUIDS can be a little non-user friendly (not to mention using up valuable space on the subject line). Because you are in control of the original message, all that matters is that you can generate a unique ID with your outgoing message.
If you have multiple senders, your unique Id can be composed of a sender identifier, the time sent, and /or a sequential id. You must be prepared to handle messages that cannot be correlated to the source through at least a manual process.
我不确定是否要更改标题,但在电子邮件主题中放置 [GUID-STYLE-ID] 来跟踪线程是很常见的。我想人们可以将其添加到正文中,但如果人们从其他电子邮件等复制粘贴,可能会感到困惑。
另外,我不确定电子邮件客户端是否会修改并可能替换实际的电子邮件标头?
I am not sure about changing the header, but its quite common to place a [GUID-STYLE-ID] in the subject of the email to track threads. I guess one could add this to the body, but it might get confusing if people copy-paste from other emails etc.
Also, I am not sure if email clients will modify and possibly replace the actual email headers?