在 SquirrelMail 裡面的 mime.txt 不小心發現的一封神奇的信件範例,可以用來測試看看 mail client 是否能正確 parse MIME 信件‧
正如裡面所說的,it's a real crazy message,我用了 pine 可以正確 parse,裡面大概長這樣:
1 Shown 3 lines Text, "Explanation" 2 Shown 4.9 KB Message, "Rich Text demo" 2.1 OK 16 lines Text 2.2.1 Shown ~13 lines Text 2.3 917 bytes Application 3 Shown 562 KB Message, "Voice Mail demo" 3.1 420 KB Audio, "Hi Mark" 4 27 KB Audio, "Flint phone" 5 1.3 KB Image, "MTR's photo" 6 Shown 182 KB Message, "Star Trek Party" 6.1.1 Shown 16 lines Text 6.1.2 23 KB Audio, "He's dead, Jim" 6.2.1 19 KB Image, "Kirk/Spock/McCoy" 6.2.2 13 KB Image, "Star Trek Next Generation" 6.2.3 46 KB Application 6.2.4 9.2 KB Application 6.3 35 KB Audio, "Distress calls" 7 Shown 86 KB Message, "Digitizer test" 7.1 Shown 0 lines Text 7.2 63 KB Image, "Bellcore mug" 7.3 Shown 8 lines Text 8 Shown 74 KB Message, "More Imagery" 8.1 Shown 26 lines Text 8.2 53 KB Image, "Mail architecture slide" 9 Shown 398 KB Message, "PostScript demo" 9.1 397 KB Application, "Captain Picard" 10 ~78 KB Image, "Quoted-Printable test" 11 Shown 103 KB Message, "q-p vs. base64 test" 11.1 ~62 KB Audio, "I'm sorry, Dave (q-p)" 11.2 30 KB Audio, "I'm sorry, Dave (BASE64)" 12 Shown 314 KB Message, "Multiple encapsulation" 12.1 40 KB Application, "The Simpsons!!" 12.2 13 KB Binary, "Alice's PDP-10 w/ TECO & DDT" 12.3 Shown 241 KB Message, "Going deeper" 12.3.1 Shown 7 lines Text 12.3.2.1 2.4 KB Image, "Bunny" 12.3.2.2 117 KB Audio, "TV Theme songs" 12.3.3 4.9 KB Application 12.3.4 Shown 75 KB Message, "Yet another level deeper..." 12.3.4.1 56 KB Audio, "I'm Twying..."
/* 截自 squirrelmail-1.4.2/doc/mime.txt :
NOTE: SquirrelMail passes the MIME Torture Test written by Mark
Crispin (author of the IMAP protocol). This message is crazy! It
has about 30 parts nested inside each other. A very good test,
and SquirrelMail passed it. It can be found here:
ftp://ftp.lysator.liu.se/mirror/unix/imapd/mime/torture-test.mbox
*/
測資用時方恨少,如果不幸有需要撰寫 mail 應用程式,這個應該是測驗程式的好東西‧
由 cclien 發表於 May 8, 2004 11:14 PM