Outlook Express保存eml文件“=”在行尾 [英] Outlook Express saving eml file with "=" at end of line

查看:185
本文介绍了Outlook Express保存eml文件“=”在行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从OutLook Express保存一个.eml文件,但保存的文件在行尾有字符=(相等)。



在souce模式下编辑邮件时,html似乎正常,只需保存并显示=。



对我来说不好,因为我会编辑在我的应用程序中的.eml发送之前。我必须找到/ BODY标签并插入一个文本。例如:

 < / DIV>< / DIV>< / DIV>< / DIV>< / DIV>< FONT = 20 
style = 3DFONT-STYLE:normal; FONT-FAMILY:calibri; COLOR:rgb(0,0,0); =
FONT-SIZE:small; -WEIGHT:normal= 20
face = 3DCalibri>< A = 20
target = 3D_blank>< / A>< / FONT>< / DIV>< / DIV& / DIV>< / DIV>< / DIV>< / DIV>< / DIV>< / BO =
DY>< / HTML>

在这种情况下,我找不到正文,因为它被写入BO = DY。 p>

我已经尝试将其保存在各种编码中,但结果相同。
为什么OutLook以这种方式保存?

解决方案

Outlook正在使用 = 作为转义符号。如果 X Y 是十六进制数字 = XY 必须用ASCII代码 XY 代替。如果 = 之后是换行符,则此换行符必须被删除,并且行已加入。



Outlook这样做只是因为可以通过SMTP安全地传输有限范围的字节值,并且必须引用该范围外的字节。线长也有限制,所以Outlook默认分割长度超过75个字节的行。我相信这被称为可打印编码。



查看 Content-Transfer-在.eml文件中编码:头文件,然后在应用过滤器之前通过解码器运行该文件。过滤后再次进行编码。


I'm trying to save an .eml file from OutLook Express but the file saved has in some lines the character "=" (equal) at the end of line.

When editing the message in souce mode the html seems normal, just save it and the "=" appears.

It is not good for me because I will edit the .eml in my application before send it. I have to find the /BODY tag and insert a text. An exemple:

</DIV></DIV></DIV></DIV></DIV><FONT=20
style=3D"FONT-STYLE: normal; FONT-FAMILY: calibri; COLOR: rgb(0,0,0); =
FONT-SIZE: small; FONT-WEIGHT: normal"=20
face=3DCalibri><A=20
target=3D_blank></A></FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BO=
DY></HTML>

In this case, I can't find the body because it is writed BO=DY.

I have tried save it in various codifications, but same result. Why OutLook is saving it this way?

解决方案

Outlook is using = as an escape symbol. If X and Y are hex digits =XY must be substituted with the character with ASCII code XY. If = is followed by a newline this newline must be removed and the lines joined.

Outlook does this because only a limited range of byte values can be transferred safely via SMTP and bytes outside of this range must be quoted. Also there are limits on the line length, so Outlook by default splits lines that are longer than 75 bytes long. I believe this is called Quotted-Printable encoding.

Check the Content-Transfer-Encoding: header in the .eml file and run the file through a decoder before applying your filter. And encode it again after filtering.

这篇关于Outlook Express保存eml文件“=”在行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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