邮件显示问题 高手帮忙了 每行多出个‘=’部分多出‘3d’(50分)

  • 主题发起人 主题发起人 zkktom
  • 开始时间 开始时间
Z

zkktom

Unregistered / Unconfirmed
GUEST, unregistred user!
我现在做了个邮件管理的软件 但是在处理邮件显示时出现了问题。
我在用thtml 或 webbrowser 显示的时候都出现了问题,不能正常显示连接内容
我把邮件的body复制下来了
看了一下里面的内容 发现每行结尾都多了个“=”
并且语句中多出了一个"3d"
请问这该如何处理!
 
this is a multi-part message in MIME format.

------=_NextPart_000_097C_01C312A0.EFC37FA0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: 7bit

<http://www.ismei.com>

<http://www.ismei.com>


<http://www.ismei.com> <http://www.ismei.com>

------=_NextPart_000_097C_01C312A0.EFC37FA0
Content-Type: text/html;
charset=&quot;gb2312&quot;
Content-Transfer-Encoding: quoted-printable

<html><head><title>=BB=B6=D3=AD=B9=E2=C1=D9=B3=F4=C3=C0=CD=F8</title><met=
a http-equiv=3D'Content-Type' content=3D'text/html; =
charset=3Dgb2312'></head><body bgcolor=3D'#FFFFFF' =
text=3D'#000000'><table width=3D'465' border=3D'0' cellspacing=3D'0' =
cellpadding=3D'0' align=3D'center'><tr><td align=3D'center' =
valign=3D'middle'><a href=3D'http://www.ismei.com' =
target=3D'_blank'><img src=3D'http://www.ismei.com/email/img/s001.gif' =
width=3D'465' height=3D'68' border=3D'0'></a></td></tr><tr><td =
align=3D'center' valign=3D'middle' height=3D'10'></td> </tr><tr><td =
align=3D'center' valign=3D'middle'><table width=3D'100%' border=3D'0' =
cellspacing=3D'0' cellpadding=3D'0'><tr><td align=3D'left' =
valign=3D'top' width=3D'52%'><a href=3D'http://www.ismei.com' =
target=3D'_blank'><img src=3D'http://www.ismei.com/email/img/s002.gif' =
width=3D'283' height=3D'204' border=3D'0'></a></td><td rowspan=3D'3' =
width=3D'48%' align=3D'right' valign=3D'top'><table width=3D'100%' =
border=3D'0' cellspacing=3D'0' cellpadding=3D'0'><tr><td align=3D'right' =
valign=3D'top' height=3D'335'><img =
src=3D'http://www.ismei.com/email/img/s005.gif'></td></tr></table><table =
width=3D'100%' border=3D'0' cellspacing=3D'0' cellpadding=3D'0'><tr> <td =
align=3D'right' valign=3D'top'><img =
src=3D'http://www.ismei.com/email/img/s006.gif'></td></tr></table></td></=
tr><tr><td align=3D'left' valign=3D'middle' height=3D'10' =
width=3D'52%'></td></tr><tr><td align=3D'left' valign=3D'middle' =
height=3D'38' width=3D'52%'><table width=3D'100%' border=3D'0' =
cellspacing=3D'0' cellpadding=3D'0'><tr><td width=3D'16%' align=3D'left' =
valign=3D'top'><a href=3D'http://www.ismei.com' target=3D'_blank'><img =
src=3D'http://www.ismei.com/email/img/s003.gif' width=3D'46' =
height=3D'188' border=3D'0'></a></td><td width=3D'84%' align=3D'right' =
valign=3D'top'><a href=3D'http://www.ismei.com' target=3D'_blank'><img =
src=3D'http://www.ismei.com/email/img/s004.gif' width=3D'223' =
height=3D'187' =
border=3D'0'></a></td></tr></table></td></tr></table></td></tr></table></=
body></html>
------=_NextPart_000_097C_01C312A0.EFC37FA0--
 
=3D就是MIME编码里面的&quot;=&quot;的意思,因为=本身作为转义符使用了,所以要表示&quot;=&quot;就必须用=3D.

你的代码没问题,关键是,要重新把Body里面的代码用MIME解码,解码后再用WebBrowser打开才行.
 
你需要自己解码一下,把前面和后面的那些去掉,自己处理一下再显示
 
=3D就是MIME编码里面的&quot;=&quot;的意思,因为=本身作为转义符使用了,所以要表示&quot;=&quot;就必须用=3D.

你的代码没问题,关键是,要重新把Body里面的代码用MIME解码,解码后再用WebBrowser打开才行.
大侠,我已经解码了! 我是用mail2000解码的!
有没有这样自动处理的代码?
我现在是把msg存贮到*.eml 然后再用WebBrowser打开的
我现在还遇到一个新情况,用mail2000没法子得到附件呢! 总是查找到附件的msg.AttachList.Count=0;
 
多人接受答案了。
 
后退
顶部