(*
here are my notes on the america online filing cabinet format, which will probably be useless to anyone but myself, and probably useless to myself by now because i've forgotten what i was doing already.

*)


00 00 00 00 
00 04 00 00 
00 0E

00 00 00 00 
00 04 00 00 
00 05

00 00 00 00 
00 04 00 00 
00 1E

looks like the above for saved incoming email
last byte is count of characters of subject, which names message
(in cabinet, maybe make sure 00 01 00 04 00 00 isnt next? a not very elegent check, since
i dont know what else to do)

00 05 00 00 00 0F 
then that with the from, last being count

00 13 00 00 00 00
00 14 00 00 00 0F 
from again, count again? (empty for AOL?)

00 15 00 00 00 0F 
then to? (empty for AOL?)

00 06 00 00 00 04 
then four characters, hex number of seconds since "Friday, January 1, 1904 12:00:00"

00 07 00 00 00 04
AF BD 1A 8A
00 12 00 00 00 40 

00 07 00 00 00 04
BD 7B EA 8D
00 12 00 00 00 39 

00 07 00 00 00 04
86 9C 2F 79
00 12 00 00 00 32 

00 07 00 00 00 04
01 7A 42 D5
00 12 00 00 00 39 
then from and to with space after? (can be truncated with ellipsis?) (empty for AOL?) (full headers for new aol)

00 0C 00 00 00 2C 
00 00 9D F6 00 00 00 F7 00 00 00 00 0B 

00 0C 00 00 00 2C 
00 00 61 91 00 00 00 F7 00 00 00 00 08 

00 0C 00 00 00 2C 
00 00 18 8A 00 00 00 F7 00 00 00 00 12   a

00 0C 00 00 00 2C 
00 01 8D 76 00 00 00 F7 00 00 00 00 0D 

00 0C 00 00 00 2C 
00 00 69 FA 00 00 00 F7 00 00 00 00 0F 
this was after above, before name of attachment? (filename char count)

00 09 00 00 00 11 00   (this in there when the to: was not SCREENNAME)

00 09 00 00 00 10 00 

00 09 00 00 00 10 00 
00 09 00 00 00 08 00  (when from aol?)
to again?


looks like this before the number with the comma, which indicates message body
30 30 30 30 30 30 30 30 00





date test:
BAD15D76
Date: Sun, 27 Apr 2003 10:11:35 -0400
4/27/03 10:12:06
BAD15D76 hexdec 3134283126

BAD15D77
Date: Sun, 27 Apr 2003 10:11:47 -0400
4/27/03 10:12:07
BAD15D77 hexdec 3134283127

BAD15DF9
Date: Sun, 27 Apr 2003 10:14:03 -0400
4/27/03 10:14:17
BAD15DF9 hexdec 3134283257

AOL Mac OS X
new format, includes headers in space 12
00 12 00 00 00 05
46 72 6F 6D 3A 
 F  r  o  m  :
00 19 00 00 03 64 
            ^^^^^
            count of headers

after last to: ( 09 10 ?)
240 characters
00 0A 00 00 0B 0A 
   ^^ label?
then 240 (varies) characters, starting with FFFF (46 46 46 46)
those 240 end with 30 30 30 30 30 30 30 30 00 which precede the length indicator
for the message

03 30 30 30 32 30 30 30 30 30 34 35 39 30 30 30 30 30 30 30 30 00 
03 30 30 30 32 30 30 30 30 30 36 33 32 30 30 30 30 30 30 30 30 00 

03 30 30 30 32 30 30 30 30 30 39 37 32 30 30 30 30 30 30 30 30 00 (1st portion)
03 30 30 30 32 30 30 30 30 30 42 34 30 30 30 30 30 30 39 36 43 00 (2nd portion)
03 30 30 30 32 30 30 30 30 30 36 46 36 30 30 30 30 31 34 41 36 00 (3rd portion)
03 30 30 30 32 30 30 30 30 30 45 41 30 30 30 30 30 31 42 39 36 00 (4th portion)

03 30 30 30 34 30 30 30 30 30 30 37 36 30 30 30 30 30 30 31 34 02 (after all message done)
03 30 30 30 34 30 30 30 30 30 30 30 46 30 30 30 30 30 30 30 33 02 



____
attachment in email format (just before ???@??? of next message)
Attachment converted: Int25gb:antiquerifles.jpg (JPEG/8BIM) (0003AFC9)
Attachment converted: Int25gb:galleryview.jpg (JPEG/8BIM) (0003AFCA)

attachment in sent (multiple)
X-Attachments: :Int25gb:2:IMG_0321.jpg: :Int25gb:2:IMG_0322.jpg: :Int25gb:2:IMG_0323.jpg: :Int25gb:2:IMG_0324.jpg:
(so i'll try :filename: :filename2:)

Sent format:
4 subject
6 date
9 to:

send attach
____
00 0D 00 00 00 46 
FF FF 00 00 01 90 11 6C 69 6E 6B 6E 6F 72 6F 6E
6E 61 73 61 2E 6A 70 67 FB DC 00 2B 1F 5C 09 13
DE E4 09 9D FA B0 00 2B E9 B0 09 21 AF 58 09 9D
FB 78 09 9D FA C0 42 00 02 40 00 1E 5E 98 FF FF
A1 AD FE 02 00 00 


this was the sent attachment routine, i'll change it because sometimes it's FF FE ?
count should be sufficient
--attachment in sent mail, can be more than one
set messagePortionList to my list_proc(valueRead, (ASCII character 255) & (ASCII character 255) & (ASCII character 0) & (ASCII character 0), "", "")
repeat with attache in messagePortionList
	if (attache as string) ≠ "" then
		set messageLength to my numconvert((text 3 through 3 of attache as string), "asciinum2hex")
		set attachFileName to text 4 through (3 + messageLength) of attache as string
		--display dialog attachFileName
		set attachNameSent to attachNameSent & separator & ":" & attachFileName & ":" as string
		set separator to space as string
	end if
end repeat

i do the same with incoming attachment routine
--attachment in incoming email, assuming only one?
set messagePortion to my list_proc(valueRead, (ASCII character 247) & (ASCII character 0) & (ASCII character 0) & (ASCII character 0), "", 2)
set messageLength to my numconvert((text 1 through 2 of messagePortion as string), "asciinum2hex")
set attachName to "Attachment converted: " & text 3 through (2 + messageLength) of messagePortion & return as string
--display dialog attachName






-- applescript filing cabinet conversion page