Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 35704 invoked from network); 13 Apr 2009 19:25:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 19:25:37 -0000 Received: (qmail 35667 invoked by uid 500); 13 Apr 2009 19:25:37 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 35642 invoked by uid 500); 13 Apr 2009 19:25:37 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 35632 invoked by uid 99); 13 Apr 2009 19:25:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 19:25:37 +0000 X-ASF-Spam-Status: No, hits=-1998.0 required=10.0 tests=ALL_TRUSTED,GAPPY_SUBJECT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 19:25:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 07001234C003 for ; Mon, 13 Apr 2009 12:25:15 -0700 (PDT) Message-ID: <2022498419.1239650715011.JavaMail.jira@brutus> Date: Mon, 13 Apr 2009 12:25:15 -0700 (PDT) From: =?utf-8?Q?Attila_Kir=C3=A1ly_=28JIRA=29?= To: mime4j-dev@james.apache.org Subject: [jira] Created: (MIME4J-128) Make o.a.j.m.message.Message and o.a.j.m.parser.MimeStreamParser be able to do headless parsing by using o.a.j.m.parser.MimeTokenStream.parseHeadless MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Make o.a.j.m.message.Message and o.a.j.m.parser.MimeStreamParser be able to= do headless parsing by using o.a.j.m.parser.MimeTokenStream.parseHeadless ---------------------------------------------------------------------------= -------------------------------------------------------------------------- Key: MIME4J-128 URL: https://issues.apache.org/jira/browse/MIME4J-128 Project: JAMES Mime4j Issue Type: New Feature Affects Versions: 0.6 Environment: Mime4j 0.6, Http Servlet Reporter: Attila Kir=C3=A1ly Attachments: message_headless_parse.patch parser.MimeTokenStream has a method called parseHeadless which makes it pos= sible to parse MIME messages without header (which is the case for example = in a web application with an incoming http request). This function is howev= er not available in higher level apis of Mime4j like in parser.MimeStreamPa= rser and message.Message. It would be nice to use it trough Message because= so other functions of mime4j would be available, like the temporary storag= e. I made a small patch that makes it possible to configure and use message.Me= ssage and parser.MimeStreamParser so it will do a headless parse. The patch= only adds functionality it does not modify the current behaviour of the cl= asses. The patch contains modifications for message.Message (adding 2 new construc= tors) and parser.MimeStreamParser (adding a new function parseHeadless) and= a test case for the headless parsing. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.