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

 
 

bug #18997: IMAPResponseTokenizer parsing part structure

Submitter:  None
Submitted:  Thu 08 Feb 2007 03:15:47 PM UTC
   
 
Category:  mail Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  dog
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-21 dog Open/ClosedOpen Closed
    2013-10-28 dog StatusNone Need Info
        Assigned toNone dog

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code