Thanks alot, both Durland and Perry! I got kinda stumped at first.. i use a program alias to handle inbound mail, and found that some of the files being passed didn't have a From: field at all. But, they seem to get one if they are inserted into a mailbox.
Now I just need to to figure out how to extract mime-attachments from the files.. If anyone know of a free commandline-util, class, script, anything that knows mbox and mime, please let me know :-) - Eric -----Opprinnelig melding----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] vegne av R. Scott Perry Sendt: 19. september 2003 13:57 Til: [EMAIL PROTECTED] Emne: Re: [IMail Forum] Headers and mailbox formats >Could anyone share some insight on the format of mailboxes and single mails? .mbx files are in standard Unix format, where a new E-mail is designated by the presence of "From <" at the beginning of a line (if an E-mail happens to have a line beginning with "From <", a ">" will be added in front of it). Then: >If i want to parse them myself, how do I know where the headers end and the >body begins? The first blank line ("CRLFCRLF") indicates the end of the headers and the beginning of the body of the E-mail. Headers cannot have a blank line in them (although it may be possible to have a line with just spaces and tabs in the headers), and there must be a blank line before the beginning of the body. -Scott --- Declude JunkMail: The advanced anti-spam solution for IMail mailservers. Declude Virus: Catches known viruses and is the leader in mailserver vulnerability detection. Find out what you've been missing: Ask about our free 30-day evaluation. --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)] To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
