邮件的解读?(200分)

  • 主题发起人 主题发起人 it2188
  • 开始时间 开始时间
I

it2188

Unregistered / Unconfirmed
GUEST, unregistred user!
收到用outlook或foxmail发送后的邮件,如1.eml。如何把1.eml的内容解码出来:
发件人、收件人、抄送人、时间、标题、邮件内容、附件数、附件标题、附件内容?
1.eml的内容:

 
1.eml的内容:

Message-ID: <001601c16b54$ef815520$2b80913d@user>
From: "user" <user@mailserver.com>
To: "user" <user@mailserver.com>
Cc: <user94@mailserver.com>
Subject: test
Date: Mon, 12 Nov 2001 16:35:08 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0012_01C16B97.FD93A530"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C16B97.FD93A530
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0013_01C16B97.FD93A530"


------=_NextPart_001_0013_01C16B97.FD93A530
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: base64

0qq0tL2o0ru49rHqyrajrMfrtaW796GwzsS8/qGxssu1pcnPtcShsLHqyrahsaOssqLRodTxobDM
7bzT0MKx6sq2obGhow0KDQo=

------=_NextPart_001_0013_01C16B97.FD93A530
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi
MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w
MC4zMzE1LjI4NzAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8
Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIA0Kc2l6ZT0yPtKqtLS9qNK7uPax6sq2
o6zH67Wlu/ehsM7EvP6hsbLLtaXJz7XEobCx6sq2obGjrLKi0aHU8aGwzO2809DCserKtqGxoaM8
QlI+PC9GT05UPjwvRElWPjwvQk9EWT48L0hUTUw+DQo=

------=_NextPart_001_0013_01C16B97.FD93A530--

------=_NextPart_000_0012_01C16B97.FD93A530
Content-Type: image/jpeg;
name="bluebump.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="bluebump.jpg"

/9j/4AAQSkZJRgABAgEASABIAAD/7QG4UGhvdG9zaG9wIDMuMAA4QklNA+kAAAAAAHgAAwAAAEgA
SAAAAAAC2gIo/+H/4gL5AkYDRwUoA/wAAgAAAEgASAAAAAAC2gIoAAEAAABkAAAAAQABAQEAAAAB
Jw8AAQABAAAAAAAAAAAAAAAAAAIAGQGQAAAAAABAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA4
QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQPzAAAAAAAIAAAAAAAAAAA4QklNJxAAAAAA
AAoAAQAAAAAAAAACOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAA
AAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////
////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP//////
//////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EBgAA
AAAAAgAE/+4ADkFkb2JlAGQAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAM
DAwMDAwQDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEHBwcNDA0YEBAYFA4ODhQUDg4ODhQR
DAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8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WkMKMy8duXxenXlx9sBKrZ0hViUNeNSq/CzszL+y3H+b/h
MQq31rqKCZIX4cjycnkeRVmH7FW6t/NhoWqD0+1uYYOMxSR5T0orJyBbp1qB9jJSIQ//0utaffTo
yfExWWlVHL+Tp8PL+amZ8osElvLrUb/WkRkkEUbguaUBI6Dc+OWgARQmUifA4PEsqfG2zfC9aKKt
lYS4ekjPwWpV39U7hePLj8X+yxVqMJ8SiJX4/E3IKF+1ToeH+T8OJQ3NDy9JZqOKpx5srt8P2qKv
2fsPiClRsbOxtEX0IqBqNI/QuWA7/H+wmGRJQrTXFxc6mXKelAicLeOvJVVSiVZh8TP8GAAAJTQh
LTS4eL/vrs83Xk/wiJtvs/8AC75XzPuVLpOe6I4BkZgvFuXw/ar0ywKhYrv17mcVPopwHNVA/wAk
/ZoW5Pw75IighH3liILaCa5mCy3XCkTOC4TioWtK9eX2MgJWdkv/2Q==

------=_NextPart_000_0012_01C16B97.FD93A530--
 
没人懂,还是不愿帮忙?
 
这个是有标准可以参照的
1521 MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms
for Specifying and Describing the Format of Internet Message Bodies.
N. Borenstein, N. Freed. September 1993. (Format: TXT=187424,
PS=393670 bytes) (Obsoletes RFC1341) (Obsoleted by RFC2045, RFC2046,
RFC2047, RFC2048, RFC2049) (Updated by RFC1590) (Status: DRAFT
STANDARD)

1522 MIME (Multipurpose Internet Mail Extensions) Part Two: Message
Header Extensions for Non-ASCII Text. K. Moore. September 1993.
(Format: TXT=22502 bytes) (Obsoletes RFC1342) (Obsoleted by RFC2045,
RFC2046, RFC2047, RFC2048, RFC2049) (Status: DRAFT STANDARD)

如过要的话,可以Mail给你
 
用Delphi6的Server板 Outlook控件,这样你就可以不用解码这个文件了。
 
有很多现成的邮件解码控件啊
你不会想自己做吧?
估计是吃力不讨好的事。[:D]
 
Delphi4:请把标准邮给我,谢谢。it2188@sina.com
硕鼠:谢谢,我试试。
xianjun:有哪些现成的控件,我不是要自己写,我只是要达到以下目标:
1.把*.eml解码成:发件人、收件人、抄送人、时间、
标题、邮件内容、附件数、附件标题、附件内容等内容;
2.把发件人、收件人、抄送人、时间、标题、邮件内容、
附件数、附件标题、附件内容等内容编成*.eml文件。
 
硕鼠:调用Delphi6的Server板 Outlook控件,如何读出*.eml的发件人、
收件人、抄送人、时间、标题、邮件内容、附件数、附件标题、附件内容等内容?
要用到哪些控件,能否寄个例子给我,谢谢!it2188@sina.com
 
你可用Delphi自帶的NMUUProcessor組件中的MIME和UUENcode來編碼和解碼。
相關屬性﹕
InputStream,要編碼或解碼的內存流
OutputStream,
Method方法﹐uuMime,uuCode﹐
方法:
Enocde,用method指定的方法編碼
Decode,解碼
事件﹕
OnBeginEncode,OnEndEncode,OnBeginDecode,OnEndDecode.
 
dadabox:我知道NMUUProcessor可以解码base64,这不是大问题,主要是我
读入1.eml整个文件时,如何解出发件人、收件人、抄送人、时间、标题、邮件内容、
附件数、附件标题、附件内容等内容。用NMUUProcessor解的话,只能手工把里面的部分
base64编码后的内容加以解码。我要的是程序解出1.eml的全部内容。
 
后退
顶部