我将我的postfix
电子邮件存储到mysql
.
我注意到一些邮件中出现了一些奇怪的字符,而其他电子邮件则没有。所以,这是随机的。
这是我看到的:
--1001534069-1142425087-1366837456=:47630
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
=0A=0AConfirmation: We received your membership (one-year) p=
ayment =0A=0A =0A =0A =0A =0A =0A =0A =0A=0A Confirmation:: We received =
your membership (one-year) payment=0AHi John Smith,=0AWe re=
............
--1001534069-1142425087-1366837456=:47630
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti=
mes new roman, new york, times, serif;font-size:12pt"><div><br></div><div s=
tyle=3D"font-family: 'times new roman', 'new york', times, serif; font-size=
: 12pt;"><div style=3D"font-family: 'times new roman', 'new york', times, s=
erif; font-size: 12pt;"><div class=3D"y_msg_container"><div id=3D"yiv684532=
7653"><div>=0A <div class=3D"yiv6845327653moz-forward-container">=0A =
=0A <title>Confirmation: We received your membership=
............................
我包括了两种内容类型,奇怪的字符相当引人注目。我将每封电子邮件保存到一个列类型中:text
,并带有排序规则:utf8_unicode_ci
对于那些对我使用什么来提取我的后缀电子邮件感兴趣的人,我正在使用 PHPimap_*
函数。
无论如何,有谁知道为什么那些奇怪的角色会被插话?(而其他电子邮件具有完美的 html 或纯文本?)