21,887
社区成员
发帖
与我相关
我的任务
分享
Array ( [oReturn-Path] => [Delivered-To] => yushuai.niu@bkmail.netchina.com.cn [Received] => (ncmail 17263 invoked by uid 401); 01 Feb 2012 01:39:57 -0000 [Message-ID] => <20120201013957.17262.ncmail@bkmail.netchina.com.cn> [Date] => Wed, 01 Feb 2012 09:39:57 +0800 [From] => yushuai.niu@bkmail.netchina.com.cn [MIME-Version] => 1.0 [Subject] => subject [To] => yushuai.niu@bkmail.netchina.com.cn [Content-Type] => multipart/mixed; boundary="------------1463804415-2084078365-1328060397=:2673" [Time] => 2012-02-01 09:39:57 [Size] => 1.12 KB [Attachs] => Array ( [attach] => Array ( [0] => Array ( [id] => 2 [name] => attach.txt [level] => 非密 ) ) ) [bodyId] => 1 )
<data>
<^LReturn-Path><yushuai.niu@bkmail.netchina.com.cn></^LReturn-Path>
<Delivered-To>yushuai.niu@bkmail.netchina.com.cn</Delivered-To>
<Received>(ncmail 17263 invoked by uid 401); 01 Feb 2012 01:39:57 -0000</Received>
<Message-ID><20120201013957.17262.ncmail@bkmail.netchina.com.cn></Message-ID>
<Date>Wed, 01 Feb 2012 09:39:57 +0800</Date>
<From>yushuai.niu@bkmail.netchina.com.cn</From>
<MIME-Version>1.0</MIME-Version>
<Subject>subject</Subject>
<To>yushuai.niu@bkmail.netchina.com.cn</To>
<Content-Type>multipart/mixed; boundary="------------1463804415-2084078365-1328060397=:2673"</Content-Type>
<Time>2012-02-01 09:39:57</Time>
<Size>1.12 KB</Size>
<Attachs>
<attach>
<id>2</id>
<name>attach.txt</name>
<level>非密</level>
</attach>
</Attachs>
<bodyId>1</bodyId>
</data>
……
<turn-Path><seandeg1@gmail.com></turn-Path>
……
<3Burn-Path><seandeg1@gmail.com></3Burn-Path>
……
<?xml version="1.0" encoding="utf-8"?>
<mailindex>
<datas>
<data>
<oReturn-Path><yushuai.niu@bkmail.netchina.com.cn></oReturn-Path>
<Delivered-To>yushuai.niu@bkmail.netchina.com.cn</Delivered-To>
<Received>(ncmail 17263 invoked by uid 401); 01 Feb 2012 01:39:57 -0000</Received>
<Message-ID><20120201013957.17262.ncmail@bkmail.netchina.com.cn></Message-ID>
<Date>Wed, 01 Feb 2012 09:39:57 +0800</Date>
<From>yushuai.niu@bkmail.netchina.com.cn</From>
<MIME-Version>1.0</MIME-Version>
<Subject>subject</Subject>
<To>yushuai.niu@bkmail.netchina.com.cn</To>
<Content-Type>multipart/mixed; boundary="------------1463804415-2084078365-1328060397=:2673"</Content-Type>
<Time>2012-02-01 09:39:57</Time>
<Size>1.12 KB</Size>
<Attachs>
<attach>
<id>2</id>
<name>attach.txt</name>
<level>非密</level>
</attach>
</Attachs>
<bodyId>1</bodyId>
</data>
<data>
<^LReturn-Path><seandeg1@gmail.com></^LReturn-Path>
<Delivered-To>sean.yan@email.netchina.com.cn</Delivered-To>
<Received>by 10.180.84.98 with HTTP; Sun, 29 Jan 2012 19:05:12 -0800 (PST)</Received>
<DKIM-Signature>v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:sub
ject:from:to :content-type; bh=6HSCkxH4EtEI801Yan/oYF7mNVUNULbL3owo3o9Z0YQ=; b=iD0DjhMG1dRC/iJKRr7FnrtXXieSfbBEZXt58MCmpyaYOBBvLjS4/s4DWHph9DxWBR OBD0Ge/u2za
ab0LoB95D7kggOMXUWOcL9iG0VgOpn2qdgbryGs2+hasVaZ8iTkNgFoXb k1JqJmLp8zu0ESJ54JwpizIv9VwkBDQGkSQik=</DKIM-Signature>
<MIME-Version>1.0</MIME-Version>
<In-Reply-To><CAExYbSWP_XvcJRhj3yMSOOr8h4dLTdbk_d8W1dMeVcmYZ=PpYg@mail.gmail.com></In-Reply-To>
<References><CAExYbSXhNw1f1ks8LkPi01aa64iUZsMXPkiHjJ_dkFCLu-0fPg@mail.gmail.com> <CAExYbSWP_XvcJRhj3yMSOOr8h4dLTdbk_d8W1dMeV
cmYZ=PpYg@mail.gmail.com></References>
<Date>Mon, 30 Jan 2012 11:05:12 +0800</Date>
<Message-ID><CAExYbSVcMscurCqoydUpVHwGqv012o40jFYQ=hhwScQKE1eoyQ@mail.gmail.com></Message-ID>
<Subject>Fwd: test gmail</Subject>
<From>sean yan <seandeg1@gmail.com></From>
<To>sean.yan@email.netchina.com.cn</To>
<Content-Type>multipart/mixed; boundary=f46d0444eab777d31604b7b61d56</Content-Type>
<Time>2012-01-30 11:05:12</Time>
<Size>120.92 KB</Size>
<Attachs>
<attach>
<id>2</id>
<name>.jpg</name>
<level>非密</level>
</attach>
<attach>
<id>3</id>
<name>.jpg</name>
<level>非密</level>
</attach>
<attach>
<id>4</id>
<name>.jpg</name>
<level>非密</level>
</attach>
</Attachs>
<bodyId>1.1</bodyId>
</data>
</datas>
</mailindex>
//过滤无效字符
function XmlSafeStr($s) {
return preg_replace("/[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]/", '', $s);
}
preg_match('/^ [ [:alnum:] [:space:] [:punct:] ]+ $/x',$title);