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

List:       kmail-devel
Subject:    [Bug 88271] view message source: "headers" also bold in message part
From:       Magnus Holmgren <holmgren () lysator ! liu ! se>
Date:       2006-05-31 7:18:57
Message-ID: 20060531071857.12732.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=88271         




------- Additional Comments From holmgren lysator liu se  2006-05-31 09:18 -------
It's no wonder considering that the highlighting code is effectively five lines and only looks at one \
message line at a time.

It is fairly simple to look for the first blank line that marks the end of the top level message header. \
That, however, would destroy the formatting of headers in multipart/* body parts and attached messages.

The correct way would probably be to traverse the DwMessage structure, to the extent that it is possible \
to get the original raw text back, which I doubt even if public Preamble() and Epilogue() methods were \
added to DwBody. But if it can be done, bug 97665 can be fixed in the process.

As a heuristic approach, we could assume that any line that could be a MIME boundary is one. We then \
start parsing headers until the next blank line, except if a Content-Type: message/* field was found, in \
which case parsing continues. _______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel


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

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