77 lines
2.8 KiB
Plaintext
77 lines
2.8 KiB
Plaintext
MBOX-Line: From imap at maclean.com Fri Jul 17 02:05:44 2015
|
|
To: imap-protocol@u.washington.edu
|
|
From: Pete Maclean <imap@maclean.com>
|
|
Date: Fri Jun 8 12:34:55 2018
|
|
Subject: [Imap-protocol] MIME parsing and part numbering
|
|
In-Reply-To: <55A87BA1.25167.5CD5348F@David.Harris.pmail.gen.nz>
|
|
References: <55A87BA1.25167.5CD5348F@David.Harris.pmail.gen.nz>
|
|
Message-ID: <mailman.24.1528486495.22076.imap-protocol@mailman13.u.washington.edu>
|
|
|
|
I have a command-line version of my parser. I'll send you a copy in
|
|
case you would care to make some comparisons. I may also be able to
|
|
find a few challenging messages.
|
|
|
|
Pete Maclean
|
|
|
|
At 11:50 PM 7/16/2015, David Harris wrote:
|
|
>As I mentioned last week, I'm in the process of replacing my
|
|
>existing MIME parser.
|
|
>
|
|
>I'm putting together a commandline version of this parser that spits
|
|
>out a full MIME
|
|
>parse including all IMAP-specific parts and part numbers, offsets,
|
|
>and octet and line
|
|
>counts. I propose to make this application publicly available in the
|
|
>hope that it might
|
|
>assist new IMAP developers to come to terms with the way MIME and IMAP
|
|
>interact with each other, particularly in regard to part numbering.
|
|
>
|
|
>I have a library of over a million mail messages I can use to test
|
|
>it out, but if you
|
|
>have a few interesting boundary-case messages, or hugely complex
|
|
>messages that
|
|
>you would be willing to share with me for testing purposes only, I'd
|
|
>be glad to
|
|
>receive them (although please be aware that I run my mail server
|
|
>with a 4MB per
|
|
>message limit). Please zip them if possible.
|
|
>
|
|
>I have the bulk of the process sorted out, but would be grateful for quick
|
|
>confirmation of two points:
|
|
>
|
|
>1: In IMAP terms, for a part that is of type MESSAGE/RFC822 and which is not
|
|
>itself multipart, "<partnum>.TEXT" and "<partnum>.1" should yield
|
|
>the same data
|
|
>when fetched.
|
|
>
|
|
>2: For a non-multipart message of any type, a request to fetch part
|
|
>"1.MIME" should
|
|
>synthesize a return containing all headers starting with "Content-" from the
|
|
>message's headers and terminate them with a CRLF.
|
|
>
|
|
>For point (2), are there any other headers I should be including in
|
|
>the synthesis?
|
|
>
|
|
>Cheers!
|
|
>
|
|
>-- David --
|
|
>
|
|
>------------------ David Harris -+- Pegasus Mail ----------------------
|
|
>Box 5451, Dunedin, New Zealand | e-mail: David.Harris@pmail.gen.nz
|
|
> Phone: +64 3 453-6880 | Fax: +64 3 453-6612
|
|
>
|
|
>Newspaper misprints from around the world:
|
|
> "After the boat had been secured above the wrecked galleon the
|
|
> apparatus was set in motion by the captain's 18-year old daughter,
|
|
> Veronica. Within an hour, she was yielding her treasure to the
|
|
> excited crew."
|
|
>
|
|
>
|
|
>
|
|
>_______________________________________________
|
|
>Imap-protocol mailing list
|
|
>Imap-protocol@u.washington.edu
|
|
>http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol
|
|
|
|
|