删除电子邮件标题 [英] Strip out email headers

查看:92
本文介绍了删除电子邮件标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我在c sharp中制作了一个控制台应用程序,该应用程序使用pop3接收电子邮件.但是我在剥离电子邮件标题时遇到了问题.
Thnx

问候,
Vishavdeep Goyal

Hello,
I made a console application in c sharp which receive email using pop3.But i am getting a problem to strip out the email headers.
Thnx

Regards,
Vishavdeep Goyal

推荐答案

我认为这对您有帮助
使用C#从POP3服务器中检索邮件 []
I think this will help you
Retrieve Mail From a POP3 Server Using C#[

target="_blank" title="New Window">^
]


我不确定为什么要删除它们,但是标题的格式很简单可以在这里找到: http://www.ietf.org/rfc.html [
I''m not sure why you need to strip them, but the headers has simple format you can find here: http://www.ietf.org/rfc.html[^] by RFC numbers 2045 to 2049.

Basically, each header goes on a separate line with possible continuation lines. An empty line signals that comments are finishes and the next line will start the e-mail body. However, do you know how to deal with multipart emails with separate MIME declaration for each part? You certainly need this is you want to parse e-mails by your own code, but this is way more difficult than just the strip of the e-mail headers.

—SA


这篇关于删除电子邮件标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆