bugClasspath Extensions - Bugs: bug #18997, IMAPResponseTokenizer parsing part...

 
 

bug #18997: IMAPResponseTokenizer parsing part structure

Submitted by:  None
Submitted on:  Thu 08 Feb 2007 03:15:47 PM UTC  
 
Category: mailSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: Chris Burdess <dog>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 21 Nov 2013 11:35:54 AM UTC, comment #2:

Closing this since the new IMAP provider uses a completely new response parsing mechanism.

Chris Burdess <dog>
Project AdministratorIn charge of this item.
Mon 28 Oct 2013 10:03:48 AM UTC, comment #1:

This shouldn't be able to happen. The [MIME-IMB] structure returned by BODYSTRUCTURE should be a list containing n lists (the bodyparts) followed by the multipart subtype (e.g. "MIXED"), followed optionally by extension data. In the case you are describing there is no multipart subtype or we would have broken out of that loop.

In order to progress further I would need to see the protocol trace showing the exact form of the BODYSTRUCTURE response from the server (which you can dump using logging).

Chris Burdess <dog>
Project AdministratorIn charge of this item.
Thu 08 Feb 2007 03:15:47 PM UTC, original submission:

gnu.mail.providers.imap.parseMultipart.parseMultipart list.get(++offset)

list.get(2) fails because there were only 2 Elements

Problem:
gnu.inet.imap.IMAPResponseTokenizer.next()

case STATE_LITERAL_LENGTH:
....
....
else if (c != 0x0d) // ignore CR

got a lenght of seven literals
after ignoring two bytes I had two ) lost
the result was a damaged structur

Solution is:
else literalLength--;

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dog (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Nov 2013 11:35:54 AM UTCdogOpen/ClosedOpen=>Closed
    Mon 28 Oct 2013 10:03:48 AM UTCdogStatusNone=>Need Info
      Assigned toNone=>dog

    Back to the top


    Powered by Savane 3.1-cleanup