[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case
From: |
remi__ |
Subject: |
Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case |
Date: |
Fri, 18 May 2007 06:41:05 -0700 (PDT) |
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...
Chris Burdess-2 wrote:
>
> remi__ wrote:
>> This is the value of "list" just after the call to parseMultipart
>> (List list,
>> Part parent, InternetHeaders parentHeaders,
>> String baseSection)
>>
>> [
>> [TEXT, PLAIN, [CHARSET, windows-1252], NIL, NIL, 7bit, 9, 1],
>> [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment,
>> [FILENAME, file]]],
>> [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment,
>> [FILENAME, file]]],
>> [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment,
>> [FILENAME, file]]],
>> [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment,
>> [FILENAME, file]]],
>> [TEXT, PLAIN, [NAME, file], NIL, NIL, base64, 2516, 33, NIL,
>> [attachment,
>> [FILENAME, file]]],
>> MIXED,
>> [BOUNDARY, ----=_Part_0_31379709.1179480493454],
>> NIL,
>> NIL
>> ]
>
> OK, thanks. Again, this all looks depressingly normal and doesn't
> explain how you come to have your problem. I'm not sure what avenues
> to suggest.
>
>
> _______________________________________________
> Classpathx-javamail mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpathx-javamail
>
>
--
View this message in context:
http://www.nabble.com/Parsing-a-MimeMultipart-tf3765039.html#a10682470
Sent from the classpathx-javamail mailing list archive at Nabble.com.
- [Classpathx-javamail] Parsing a MimeMultipart, remi__, 2007/05/16
- Re: [Classpathx-javamail] Parsing a MimeMultipart, Chris Burdess, 2007/05/16
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, remi__, 2007/05/16
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, remi__, 2007/05/18
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, Chris Burdess, 2007/05/18
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, remi__, 2007/05/18
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, Chris Burdess, 2007/05/18
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case,
remi__ <=
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, Chris Burdess, 2007/05/18
- Re: [Classpathx-javamail] Parsing a MimeMultipart :: Test case, remi__, 2007/05/21