[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 27119] viewing multipart mime with attachment (missing last boundary like Outlook)
From:       Marc Mutz <mutz () kde ! org>
Date:       2002-10-11 18:40:05
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=27119     
mutz@kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From mutz@kde.org  2002-10-11 20:40 -------
Subject: Re:  viewing multipart mime with attachment (missing last boundary like Outlook)

On Friday 11 October 2002 16:36, Michael Moeller wrote:
<snip>
> patch to handle incorrect multiparts as multiparts
<snip>

Hmm, thanks for the patch.
"Unfortunately", the bug was already fixed by KHZ some time ago:
    while (1) {
        result = FindBoundary(pos, &boundaryStart, &boundaryEnd, 
&isFinal);
        // NOTE: For enhanced fault tolerance we *accept* a missing last
        //       boundary.
        //       If no last boundary is found (but at leat a first one 
was
        //       there) we just assume the end of the text ebing the end
        //       of the last part.
        //       By doing so we can safely parse some buggy MS Outlook
        //       clients' messages.                      (khz, 
12.06.2002)
        start = pos;

        if (result == kParseFail) {
            isFinal = true;
            len = mString.length() - pos;
        } else {
            len = boundaryStart - pos;
        }

It will be in 3.1.

> (perhaps this time it works)
<snip>

It did!

Marc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic