[ 
https://issues.apache.org/jira/browse/MIME4J-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski updated MIME4J-21:
------------------------------------

    Attachment: headlessmime.patch

This patch should take care of the problem. I did my best to keep changes as 
non-intrusive as possible at the expense of a certain code duplication. I am 
very open to suggestions of a better approach.

Please review.

Oleg

> [JW #1] Parsing a message without headers
> -----------------------------------------
>
>                 Key: MIME4J-21
>                 URL: https://issues.apache.org/jira/browse/MIME4J-21
>             Project: Mime4j
>          Issue Type: Wish
>            Reporter: Robert Burrell Donkin
>            Assignee: Jochen Wiedmann
>             Fix For: 0.4
>
>         Attachments: headlessmime.patch
>
>
> http://mail-archives.apache.org/mod_mbox/james-server-dev/200708.mbox/[EMAIL 
> PROTECTED] #1
>     Currently, Mime4j can only parse messages with headers. That's
> not suitable
>       for parsing an HTTP message, because the typical situation is
> in a servlet,
>       that doesn't see the headers.
>       I'd propose a new method
>            public parse(InputStream, BodyDescriptor)
>      This method would be specified as emitting a sequence
>          T_START_MULTIPART ... T_END_MULTIPART
>      as opposed to
>          T_START_MESSAGE T_START_HEADER ... T_END_HEADER
>          T_START_MULTIPART ... T_END_MULTIPART T_END_MESSAGE
>      The required patch is relatively minor and should not complicate
> the parser.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to