Re: Parsing a MimeMultipart :: Test case

remi__ <[email protected]> Mon, 21 May 2007 05:21:05 -0700 (PDT)
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
The update to 1.1.2 solved my problem. 
Let's hope now that JOnAS switches to that version in the upcoming releases
!

Thanks for your support,

Rémi


Chris Burdess-2 wrote:
> 
> remi__ wrote:
>> Here is an "avenue":
>>
>> I ve been debuggin the parseMultiPart and parseBodyPart methods of
>> IMAPMessage.
>> Here is what I see in parseBodyPart :
>>
>> list is [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment, [FILENAME, file]]]
>> its size is 10
>>
>> String encoding = parseAtom(list.get(BS_ENCODING + extensionCount));
>>
>> with
>> BS_ENCODING = 5 (it is a constant)
>> and
>> extensionCount = list.size() - 8 = 2
>>
>> so encoding is the 8th value of the list, which is 33
>>
>> I would have expected extensionCount to be 0 so that we get the 6th  
>> value of
>> the list...
>>
>> What I really don t get is what that does not happen when you  
>> execute it...
> 
> You must be working from version 1.1 or earlier of gnumail. You need  
> to update to the current version (1.1.2).
> 
> 
> _______________________________________________
> Classpathx-javamail mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/classpathx-javamail
> 
> 

-- 
View this message in context: http://www.nabble.com/Parsing-a-MimeMultipart-tf3765039.html#a10717735
Sent from the classpathx-javamail mailing list archive at Nabble.com.