Bug 280102

Summary: KMail doesn't handle HTML anchors (regression from kde 4.4)
Product: [Applications] kdepim Reporter: Tom Collins <ltskinol>
Component: messageviewerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: aeris, montel
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Sample message digest from Yahoo groups
The message, imported into a maildir.

Description Tom Collins 2011-08-15 05:02:25 UTC
Created attachment 62832 [details]
Sample message digest from Yahoo groups

Version:           4.6 (using KDE 4.6.3) 
OS:                Linux

Yahoo groups sends e-mails as HTML with a table of contents at the top.  Each entry in the table of contents is a HTML <a href> that references an <a name> farther down in the HTML.  Kmail now doesn't jump-to those links when clicking on the table of contents.

The only thing I see "funny" is that the HTML is sent as quoted-printable.

Reproducible: Always

Steps to Reproduce:
Click on a TOC link.

Actual Results:  
Nothing.

Expected Results:  
Display jumps to the digest message.
Comment 1 aeris 2011-08-28 11:47:01 UTC
Same problem, but on 4.4 too
Internal link seems working on 4.4.7 but not on 4.4.11.


Already reported to Debian team (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626261)
Comment 2 Laurent Montel 2011-09-05 15:39:55 UTC
Ok I can see that it doesn't work.
Will look at why. Don't understand why for the moment.
Comment 3 Tom Collins 2012-04-01 03:01:21 UTC
Any updates?
Comment 4 Laurent Montel 2012-09-02 12:00:38 UTC
is it work in new version ?
is it work in firefox ?
could you save it in mbox format pleasE ?
Comment 5 Tom Collins 2012-09-23 02:20:00 UTC
Does not work in KMail 4.8.5, which is what I have available at this time.

Can't try this directly in Firefox, since the e-mail body is quoted-printable encoded, and that has to be un-done before the body is pure HTML.

Attached is a zip file containing this file imported into a maildir directory.

Thanks!
Comment 6 Tom Collins 2012-09-23 02:21:10 UTC
Created attachment 74102 [details]
The message, imported into a maildir.
Comment 7 Laurent Montel 2012-09-24 06:40:14 UTC
Ok I confirm it.
Don't know why for the moment.
Comment 8 Tom Collins 2012-09-25 00:58:48 UTC
Thanks for checking it out.
Comment 9 Laurent Montel 2012-09-28 06:33:02 UTC
in void WebKitPartHtmlWriter::end()
we use mHtmlView->setHtml( mHtml , QUrl( "file:///" ) );
and it defines baseurl but it's not correct.
But I don't know how to fix it...
Comment 10 Denis Kurz 2016-09-24 21:00:08 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kdepim (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 11 Denis Kurz 2017-01-07 21:55:19 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.