`
ihuashao
  • 浏览: 4744932 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

MIME and Quoted-printable

阅读更多

关于MIME的介绍,from http://en.wikipedia.org/wiki/MIME

Multipurpose Internet Mail Extensions (MIME) is an Internet Standard that extends the format of e-mail to support:

  • text in character sets other than US-ASCII;
  • non-text attachments;
  • multi-part message bodies; and
  • header information in non-ASCII character sets.

Virtually all human-written Internet e-mail and a fairly large proportion of automated e-mail is transmitted via SMTP in MIME format. Internet e-mail is so closely associated with the SMTP and MIME standards that it is sometimes called SMTP/MIME e-mail.[1]

The content types defined by MIME standards are also of importance outside of e-mail, such as in communication protocols like HTTP for the World Wide Web. HTTP requires that data be transmitted in the context of e-mail-like messages, even though the data may not actually be e-mail.

MIME is specified in six RFCs: RFC 2045, RFC 2046, RFC 2047, RFC 4288, RFC 4289 and RFC 2077.

关于Quoted-printable的介绍,from http://en.wikipedia.org/wiki/Quoted-printable

Quoted-printable, or QP encoding, is an encoding using printable characters (i.e. alphanumeric and the equals sign "=") to transmit 8-bit data over a 7-bit data path. It is defined as a MIME content transfer encoding for use in Internet e-mail.

一些其它有用链接:

http://www.weiw.com/tech/luanma/luanma08.html
http://www.lupaworld.com/441/viewspace_220.html

我的分析,到http://www.motobit.com/util/quoted-printable-decoder.asp,提供在线的解码。输入:

<P>DearAmazonmember,<BR><BR>Duetoconcernswehaveforthesafetyand=
integrityoftheAmazoncommunitywehaveissuedthiswarning.
<BR><BR>Per=
theUserAgreement,Section9,wemayimmediatelyissueawarning,tempor=
arilysuspend,indefinitelysuspendorterminateyourmembershipandrefus=
etoprovideourservicestoyouifwebelievethatyouractionsmaycause=
financiallossorlegalliabilityforyou,ourusersorus.Wemayalsot=
aketheseactionsifweareunabletoverifyorauthenticateanyinformati=
onyouprovidetous.
<BR><BR>Pleasefollowthelinkbelow:<BR><BR><Ahre=
f=3D"http://rds.yahoo.com/_ylt=3DA0geurgnV4VEPnoB98hXNyoA;_ylu=3DX3oDMTE5a=
XJmaGJ2BGNvbG8DZQRsA1dTMQRwb3MDMTIzBHNlYwNzcgR2dGlkA0Y3NTFfMTA4/SIG=3D12hh=
jkhah/EXP=3D1149675687/**http://www.google.com/url?q=3Dhttp://211.94.240.2=
1/_us/obidos/index.html?ref=3Dpd_irl_gw_r/102-8758036-5777720?opt=3Doa&pag=
e=3Drecs/sign-in-secure.html&response=3Dtg/recs/recs-post"target=3D_BLANK=
>http://www.amazon.com/exec/obidos/sign-in.html</A><BR><BR>andupdateyour=
accountinformation.
<BR><BR>Weappreciateyoursupportandunderstanding=
,asweworktogethertokeepAmazonmarketasafeplace.
<BR><BR>Thankyo=
uforyourattentiononthisseriousmatter.
</P>
<P><BR>Regards,<BR>AmazonSafetyDepartment<BR><BR><BR>NOTE:Thismessage=
wassenttoyoubyanautomatede-mailsystem.Pleasedon'treplytoit.A=
mazontreatsyourpersonalinformationwiththeutmostcare,andourPriva=
cyPolicyisdesignedtoprotectyouandyourinformation.
</P><FONT
size=3D=
2></FONT><FONTface=3DArialsize=3D2>
<P>&nbsp;</P></FONT>

输出为:

<P>DearAmazonmember,<BR><BR>DuetoconcernswehaveforthesafetyandintegrityoftheAmazoncommunitywehaveissuedthiswarning.<BR><BR>PertheUserAgreement,Section9,wemayimmediatelyissueawarning,temporarilysuspend,indefinitelysuspendorterminateyourmembershipandrefusetoprovideourservicestoyouifwebelievethatyouractionsmaycausefinanciallossorlegalliabilityforyou,ourusersorus.Wemayalsotaketheseactionsifweareunabletoverifyorauthenticateanyinformationyouprovidetous.<BR><BR>Pleasefollowthelinkbelow:<BR><BR><Ahref="http://rds.yahoo.com/_ylt=A0geurgnV4VEPnoB98hXNyoA;_ylu=X3oDMTE5aXJmaGJ2BGNvbG8DZQRsA1dTMQRwb3MDMTIzBHNlYwNzcgR2dGlkA0Y3NTFfMTA4/SIG=12hhjkhah/EXP=1149675687/**http://www.google.com/url?q=http://211.94.240.21/_us/obidos/index.html?ref=pd_irl_gw_r/102-8758036-5777720?opt=oa&page=recs/sign-in-secure.html&response=tg/recs/recs-post"target=_BLANK>http://www.amazon.com/exec/obidos/sign-in.html</A><BR><BR>andupdateyouraccountinformation.<BR><BR>Weappreciateyoursupportandunderstanding,asweworktogethertokeepAmazonmarketasafeplace.<BR><BR>Thankyouforyourattentiononthisseriousmatter.</P>
<P><BR>Regards,<BR>AmazonSafetyDepartment<BR><BR><BR>NOTE:Thismessagewassenttoyoubyanautomatede-mailsystem.Pleasedon'treplytoit.Amazontreatsyourpersonalinformationwiththeutmostcare,andourPrivacyPolicyisdesignedtoprotectyouandyourinformation.</P><FONT
size=2></FONT><FONTface=Arialsize=2>
<P></P></FONT>

看看这里的URL,就是利用了URL Redirection。

分享到:
评论

相关推荐

    Quoted-printable 编码介绍、Quoted-printable编码解码转换方法

    当邮件需要包含非ASCII字符或二进制格式附件时,MIME标准就会使用Quoted-printable编码。 MIME是多用途互联网邮件扩展(Multipurpose Internet Mail Extensions)的缩写,它是一个扩展了传统电子邮件标准的互联网...

    MIME Quoted Printable &amp; Base64 编码解码程序

    在MIME协议中,有两类常见的编码方式:Quoted-Printable(引号可打印)和Base64,这两种编码主要用于处理包含特殊字符的数据,确保它们能够在电子邮件或其他文本传输系统中正确地编码和解码。 **Quoted-Printable...

    C# Quoted-Printable编码、解码

    编码与解码的实现遵循了相关的RFC标准,即RFC1521和RFC2045,这两个标准详细定义了MIME(多用途互联网邮件扩展)的格式,其中包括了Quoted-Printable的内容编码方案。遵循这些标准能够确保不同邮件系统之间的兼容性...

    MIME学习笔记--转载

    常用的有`7bit`、`8bit`、`binary`、`quoted-printable`和`base64`。`base64`常用于编码二进制数据,以确保在ASCII环境中安全传输。 6. **MIME的应用** MIME不仅限于电子邮件,它的`Content-Type`和`Content-...

    apache-mime4j-0.6.jar&httpmime-4.0.1.jar

    2. 内容处理:支持对MIME消息中的不同部分进行解码、编码,如Base64、Quoted-Printable等。 3. 建立MIME消息:除了解析,MIME4J还允许开发者构建新的MIME消息,为发送文件或创建复杂的邮件结构提供便利。 4. 头部...

    qp.rar_mime QP_qp_quoted printable_字节base64_邮件 ASCII

    Quoted-Printable也是MIME邮件中常用的编码方式之一。同Base64一样,它也将输入的字符串或数据编码成全是ASCII码的可打印字符串。 Quoted-Printable编码的基本方法是:输入数据在33-60、62-126范围内的,直接输出...

    各种形式的编码解码工具

    MIME + Quoted-printable 如输入:测试CSDN 结果为: 测试CSDN \uXXXX \u6D4B\u8BD5\u0043\u0053\u0044\u004E \UXXXXXXXX \U00006D4B\U00008BD5\U00000043\U00000053\U00000044\U0000004E &#DDDD; &#27979;&#35797;...

    apache-mime4j-0.6.1-bin

    4. **编码处理**:MIME标准允许使用各种编码来表示非ASCII字符,如Base64、Quoted-Printable等。Mime4j库能够自动解码这些编码,使开发者可以获取原始数据。 5. **流式处理**:为了处理大邮件,Mime4j支持流式解析...

    常用编码VBA.zip

    2. **Quoted-Printable编码**:这是一种用于非ASCII字符的编码方式,尤其在MIME邮件标准中常见。它将不可打印或可能引起混淆的字符转换为可打印的ASCII字符。VBA宏实现此功能,有助于保持数据在传输过程中的完整性。...

    一个PHP邮件mime解析器

    3. **处理编码内容**:邮件中的文本和附件可能经过Base64或Quoted-Printable编码,解析器应能正确解码这些内容。 4. **处理嵌入资源**:在HTML邮件中,可能存在内联图像或其他资源,解析器需要处理这些资源的引用。 ...

    MIME邮件扩充协议-rfc文档

    4. **编码方式**:对于不能直接在邮件中传输的数据,MIME 提供了各种编码方法,如 Base64 对二进制数据进行编码,Quoted-printable 用于编码可打印的 ASCII 字符。 5. **附件支持**:MIME 可以轻松地将文件作为邮件...

    MIME协议分析 MIME

    - **传输编码**:MIME规定了不同的编码机制,如Base64、Quoted-Printable等,确保二进制文件能在邮件系统中安全、准确地传递。 2. **一封简单MIME邮件的结构** - **邮件头**:邮件头包括发件人、回信地址、收件人...

    原始MIME的rfc文档2045-2049

    编码单词通过Base64或Quoted-Printable编码来转换非ASCII字符,使其能在邮件头部合法地传输。 4. **RFC2048:MIME Part Four - Registration Procedures** RFC2048阐述了如何注册新的MIME媒体类型和编码方法。它...

    C# 生成VCF demo源代码,支持Android,outlook QuotedPrintable 中文编码

    本demo源代码主要关注的是在处理中文字符时的编码问题,特别是使用Quoted-Printable编码来确保中文字符在传输过程中的正确性。 Quoted-Printable编码是Internet编码的一种,常用于包含非ASCII字符的数据,例如邮件...

    开发multipart与解析mime邮件等所用的jar包

    2. 内容处理:可以处理各种编码(如Base64、Quoted-printable)的内容,并将其转化为原始形式。 3. 附件处理:支持从MIME邮件中提取附件,并能识别其类型和编码。 4. 嵌套消息:对于包含其他MIME消息的邮件,也能...

    MIME编解码器

    原创作品, VC6.0,MFC开发. 支持常用的MIME编解码, 如base64, quoted-printable, UUENCODE, UTF-7, UTF-8, 简繁转换, MD5计算等.

    MIME加密解密源代码VB版

    1. MIME编码:MIME定义了多种编码方式,如Base64、Quoted-Printable和Binary。Base64常用于将二进制数据转换为ASCII文本,以便在网络上传输;Quoted-Printable则用于保持文本格式,避免特殊字符被误解;Binary则用于...

    DotNetOpenMail

    A programmer can use it to create multipart/alternative, multipart/related and multipart/mixed MIME messages in various character sets and various mime encodings such as quoted-printable, 7bit, 8bit ...

    quotedprintable:一个关于带引号可打印编码的Go包

    包quotedprintable可以实现quoted-printable和邮件标头编码,如RFC 2045和RFC 2047所指定。 它是Go 1.5软件包mime/quotedprintable 。 它还包括有关RFC 2047的包mime的新功能。 为了与Go 1.0及更高版本一起使用,...

Global site tag (gtag.js) - Google Analytics