Created
January 13, 2014 02:29
-
-
Save uzulla/8393825 to your computer and use it in GitHub Desktop.
mac mail.appでつかわれたりするemlxフォーマットのメモ、
自分で調べた物なので、信用性は薄い
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
基本的にはemlフォーマット(メールのソースである) | |
改行コードはどうやらLFである | |
一行目にメールソースの長さが入る、 | |
つまり後述のXMLが開始するまでのバイト数、ただし先頭の数字(サイズ)の行を除く | |
なので、ボディサイズをいきなりカウントして、 | |
その数字を先頭にいれて、ボディをいれて、XMLをつっこめばよい。 | |
XMLは以下のような物、中身はいれなくてもとりあえずは動く模様 | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>date-sent</key> | |
<real></real> | |
<key>flags</key> | |
<integer></integer> | |
<key>sender</key> | |
<string></string> | |
<key>subject</key> | |
<string></string> | |
<key>to</key> | |
<string></string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment