通过C#读取时从电子邮件中删除签名 [英] Removing signatures from emails while reading through C#

查看:89
本文介绍了通过C#读取时从电子邮件中删除签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目要求从公共文件夹中读取电子邮件。当我们阅读电子邮件内容时,我们应该忽略签名,只使用C#单独阅读邮件。请提供有关如何实现这一目标的任何信息。


项目背景:


讨论室是一个门户网站,用户可以在其中创建讨论和电子邮件触发给其他用户。电子邮件的接收者可以登录门户网站发布评论,也可以回复他们收到的原始电子邮件。通过电子邮件回复的评论
将被发送到公共文件夹并存储为电子邮件。我们需要阅读邮件的内容并更新数据库中的内容。我们现在面临的问题是,当我们阅读电子邮件的内容时,签名
也会保存在数据库中。我们需要忽略签名,只需阅读电子邮件中的文字。





Krishna kumar

解决方案

定义签名?这里的签名在哪里?

你在忙什么鲍勃? 

比尔

这里怎么样?

你对鲍勃有什么看法? 

或者在这里?

你在忙什么鲍勃? 

Bill
Sr Sothing of Nothing
Some Company
< cool image>

"一些很酷的报价"

甚至是这个?

什么是鲍勃? 

比尔

"一些很酷的报价"

PS不要忘记星期五的会议

看到问题?签名只不过是一些文本可以应用于其他文本流的末尾。它可能存在也可能不存在。如果没有使用某些启发式方法,那么很难确定电子邮件的内容和
签名是什么。除非你制定了一些规则,否则我甚至不知道你能做到。


Michael Taylor

http://www.michaeltaylorp3.net



i have a project requirement to read emails from a public folder. When we read the email content we should ignore the signature and just read the message alone using C#. please provide any info on how this can be achieved.

Project background:

Discussion room is a portal where users can create discussions and emails will be triggered to other users. The receiver of the email can either login to the portal to post their comments or they can reply to the original email they received. The comment which was replied through email will be sent to a public folder and stored as an email. we need to read the content of the mail and update that in the database. The problem which we are facing right now is when we read the content of the email the signature also gets saved in the DB. we need to ignore the signature and just read the text from the e-mail.


Krishna kumar

解决方案

Define a signature? Where is the signature here?

What are you up to Bob?

Bill

How about here?

What are you up to Bob?

Or here?

What are you up to Bob?

Bill
Sr VP of Nothing
Some Company
<cool image>

"Some cool quote"

Or even this?

What are you up to Bob?

Bill

"some cool quote"

PS Don't forget about Friday's meeting

See the problem? A signature is nothing more than some text that may be applied to the end of an otherwise stream of text. It may or may not be there. Short of using some heuristics it is going to be very difficult to identify what is part of the email and what is the signature. Unless you put some rules in place I don't even know that you can.

Michael Taylor
http://www.michaeltaylorp3.net


这篇关于通过C#读取时从电子邮件中删除签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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