Re: Parsing a MimeMultipart :: Test case

Chris Burdess <[email protected]> Thu, 17 May 2007 09:16:33 +0100
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
remi__ wrote:
> Here is a test case.
> I added the client.jar file from JOnAS 4.8.4 lib to the classpath  
> to compile
> and run. This jar contains a javamail implementation based on GNU- 
> javamail
> 1.1.1
>
> The test case sends a mail to an IMAP server with a few xml  
> enclosed files
> (you have to specify the file in the code). It retrieves the mail and
> displays one of the body parts.
>
> The output is done on System.out and the result displays the  
> "bug" ( if it
> is a bug ...)
>
> Thanks
>
> Rémi
>
> http://www.nabble.com/file/8463/TestGNUMail.java TestGNUMail.java

Thanks for this.

I just tried out your test here, this is the result (tested against  
an Exchange server):

Content-Type: application/octet-stream; name=file.xml
Content-Transfer-Encoding: 7BIT
Content-Disposition: attachment; filename=file.xml

<test/>

So this leads me to suspect something weird in the specific server  
you're using. Perhaps you could capture the TCP session using a tool  
like tcpflow for the duration of your program?