Bug 63780 - Auto-render HTML for certain email addresses
Summary: Auto-render HTML for certain email addresses
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 1.99.0
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 53801 61024 92373 117017 141434 147380 181348 185220 231131 238561 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-05 23:57 UTC by jmaldrich
Modified: 2022-07-26 19:11 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmaldrich 2003-09-05 23:57:02 UTC
Version:           1.5 (using KDE KDE 3.1)
Installed from:    RedHat RPMs
OS:          Linux

KMail defaults to NOT rendering HTML emails. I would like to be able to put an entry into the address book and put a checkmark in a box that says "it's safe to render HTML emails from this person." That way when my buddy on Hotmail sends me an email, I can read it without all the HTML source code. I realize that I can just click where it says to activate HTML rendering, but it would be nice if KMail would either remember that I want to read this person's email in HTML or allow us to specify it in advance.
Comment 1 Roberto Selbach 2003-09-06 16:29:28 UTC
So I suppose you meant to report a bug for kmail, right? ;-) 
Comment 2 jmaldrich 2003-09-06 20:01:27 UTC
Subject: Re:  Wish -- Auto-render HTML for certain email addresses

On Saturday 06 September 2003 10:29 am, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=63780
> roberto@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Product|knode                       |kmail
>
>
>
> ------- Additional Comments From roberto@kde.org  2003-09-06 16:29 -------
> So I suppose you meant to report a bug for kmail, right? ;-)
>
Yes... I suppose I missed what I was trying to click on. Sorry, my bad. :-)
	John

Comment 3 Tom Albers 2004-07-31 01:24:00 UTC
Related to BR 53178
Comment 4 Daevid Vincent 2004-08-30 04:49:44 UTC
there are certain emails i get that are in HTML and trusted. in Outlook, i can 
add the sender to a 'safe list' that all emails from them show in HTML. in 
KMail, it seems i have to constantly click the approval link and it's 
annoying.
Comment 5 Tom Albers 2004-10-30 21:24:48 UTC
*** Bug 92373 has been marked as a duplicate of this bug. ***
Comment 6 henk loke 2005-04-01 13:50:43 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Andreas Gungl 2005-06-05 20:53:52 UTC
If you filter your messages into folders, you can set that option on a per folder basis. Would that help you?
Comment 8 jmaldrich 2005-06-05 22:53:34 UTC
On Sunday 05 June 2005 02:53 pm, Andreas Gungl wrote:
[bugs.kde.org quoted mail]
Possibly... Not as much as if I could set it on an individual basis... 
Comment 9 Daevid Vincent 2005-06-05 23:31:04 UTC
agreed. that is a band-aid fix. you're trying to mold my mail reading methodology to a shortcoming of the program. it should offer me the flexibility to work the way i've been accostomed to working for years. 

I already have too many folders. and this should be simple enough to implement. this could be as simple as a 'filter' option. ie. "if from user@foo.com or from *@foo.com then HTML okay" kind of a thing.

plus for good measure i'll throw in the fact that the more Outlook features (and strengths) that can be incorporated into KMail, the easier it is for someone (like me) to migrate. Outlook is still one of the main reasons I haven't switched from XP to Gentoo as my desktop. 
Comment 10 Andreas Gungl 2005-06-06 08:28:44 UTC
Am Sonntag, 5. Juni 2005 23:31 schrieb Daevid Vincent:
> agreed. that is a band-aid fix. you're trying to mold my mail
> reading methodology to a shortcoming of the program. it should offer me
> the flexibility to work the way i've been accostomed to working for
> years.


My question wasn't meant as an offense. I've asked because I have another 
workflow.

> I already have too many folders. and this should be simple enough to
> implement. this could be as simple as a 'filter' option. ie. "if from
> user foo com or from * foo com then HTML okay" kind of a thing.


It's less a question of simplicity of the implementation but of the 
development capacity and priority of a change.
If you think it's simple enough, please go and provide a patch.

> plus for good measure i'll throw in the fact that the more Outlook
> features (and strengths) that can be incorporated into KMail, the easier
> it is for someone (like me) to migrate. Outlook is still one of the main
> reasons I haven't switched from XP to Gentoo as my desktop.


<irony>
Let's complain to Bill. If he provided OL for Linux, this would indeed 
increase the competition and force the OSS developers to put much more 
effort into their projects.
</irony>
Comment 11 Thomas McGuire 2007-02-09 13:56:19 UTC
*** Bug 141434 has been marked as a duplicate of this bug. ***
Comment 12 Bram Schoenmakers 2007-03-09 23:03:42 UTC
*** Bug 117017 has been marked as a duplicate of this bug. ***
Comment 13 Thomas McGuire 2007-06-30 14:35:27 UTC
*** Bug 147380 has been marked as a duplicate of this bug. ***
Comment 14 Nick Shaforostoff 2008-12-06 06:03:21 UTC
would autorendering for all contacts from addressbook be enough?
Comment 15 Matthias Weiss 2008-12-06 12:28:21 UTC
(In reply to comment #14)
> would autorendering for all contacts from addressbook be enough?
> 

Fine for me.


Regards
Matthias Weiß
Comment 16 Marcin Kasperski 2008-12-08 13:12:17 UTC
As far as I am considered those two things seem to be unrelated.

When I receive some newsletter, I may be trusting it to display images, but I do not need it in the adressbook.

At the same time I can correspond with somebody but dislike backgrounds he puts in emails or don't be wishing to let him know that I opened the email

I'd suggest just some option like "ALways show images from this recipient" saved in some hidden preference.
Comment 17 mail 2008-12-30 21:03:22 UTC
Autorendering for all contacts in address book sounds like a good compromise to me. To have more freedom in choosing what to display from who would be nice, but bloats the software a little more.
Comment 18 Jaime Torres 2009-02-01 00:52:57 UTC
*** Bug 181348 has been marked as a duplicate of this bug. ***
Comment 19 Jaime Torres 2009-02-23 16:08:06 UTC
*** Bug 185220 has been marked as a duplicate of this bug. ***
Comment 20 Janet 2009-05-18 04:16:10 UTC
To be able to activate HTML for all addresses/just the addresses in the addressbook doesn't seem like a good idea. As explained in Comment #16 trusting an address and having it in the address book doesn't always go together. Looking through the contacts in my address book I'd say that it really is 50/50 (or a little less than 50%) from whom I'd like to accept HTML-Mails. It would be great to be able to decide for every contact in my address book if HTML or not, but it would be even better to have an additional whitelist independent from the address book for e.g. newsletters and similar which won't go into the address book.
Comment 21 Nick Hibma 2009-09-07 09:41:21 UTC
Having a flag in the addressbook for a sender you want to always view HTML e-mails from (including external links in it) sounds like the easiest solutions without having to create a new database.

Adding the newsletter sender address to the addressbook is trivial and not intrusive at all.
Comment 22 Björn Ruberg 2009-12-15 23:52:57 UTC
*** Bug 53801 has been marked as a duplicate of this bug. ***
Comment 23 François Bissey 2010-01-09 21:47:27 UTC
I personally filter my mailing list to separate folders.
What would work for me is the ability to set html rendering on 
for the content of a specific folder.
I wouldn't want the rendering to be on for everyone in my contact
list. I have no problem adding a mailing list address there and 
toggle a switch but I don't like a blanket setting. After all some
people on my contact list may sometimes send me stuff in html I'd
rather not deal with.
Comment 24 Malte S. Stretz 2010-06-17 11:08:20 UTC
*** Bug 238561 has been marked as a duplicate of this bug. ***
Comment 25 Malte S. Stretz 2010-06-17 11:10:20 UTC
*** Bug 231131 has been marked as a duplicate of this bug. ***
Comment 26 Anne-Marie Mahfouf 2011-11-27 13:19:22 UTC
Is this valid for KMail2? I am switching it to the kmail2 product, please check if it still applies, thanks
Comment 27 Jayesh Badwaik 2012-03-21 04:22:57 UTC
I want a similar feature for me and I don't want any compromise. I want the ability to set the rendering through a filter. I have never before done programming for KDE but I am quiet experience in C++ and would be willing to write a patch for the thing so if someone else is not working, I can at least give it a shot. I am trying to read the KMail source right now and would be delighted if someone can help me a little with it when I need help. :-)

So, just let me know what exactly is the status and I will pick it up from there. :-)
Comment 28 Mathias Dietrich 2012-06-25 15:12:17 UTC
Are there any news regarding this issue ?

It would be really nice if someone could implement it the way, that HTML emails from adresses in my address book a rendered automatically. 
(That is btw how Thunderbird is doing it).
Comment 29 Laurent Montel 2012-10-05 08:06:00 UTC
Done in 4.9.x
fixed in 4.9.2
Comment 30 Luigi Toscano 2012-11-24 16:20:49 UTC
*** Bug 61024 has been marked as a duplicate of this bug. ***
Comment 31 km 2012-12-16 10:30:55 UTC
What is the solution? I don't see any option in 4.9.4.
Comment 32 Laurent Montel 2012-12-16 16:04:05 UTC
in kaddressbook -> contact -> edit it -> in tab contact => Prefer to receive message formatted as "HTML"

=> contact needs to be indexed by nepomuk
and it works fine.
Comment 33 Thiago Jung Bauermann 2013-05-15 18:06:14 UTC
This feature is not working for me, I'm on KDE (and KMail) 4.10.3 on Kubuntu 12.04.2.

How do I know if it's because the contact wasn't indexed by nepomuk for some reason, or if it is a regression of this bug?
Comment 34 Thiago Jung Bauermann 2013-05-15 18:24:03 UTC
As it often happens, I found the answer to my question minutes after asking for help...

I opened Akonadi Console and Akonadi Nepomuk Feeder had a status of "Waiting for Nepomuk service to start" (I don't remember the exact words). I restarted the agent and it is now working.

This is bug 294320.
Comment 35 Orion 2014-05-10 06:23:02 UTC
This function is not working in 4.10.3 
set your KMail to not prefer HTML. Set a contact to be allowed html rendering. Works
then set KMail to prefer html rendering . Said contact will now be rendered "plain text" despite setting to HTML. 
The addressbook setting works as "default / not default" - not as stated "default/plain/html"
Comment 36 Laurent Montel 2014-05-12 06:08:21 UTC
I confirm comment 35 in 4.13/master I reopen it
Comment 37 Orion 2014-05-12 06:22:11 UTC
Please note that I opened a new bug on the issue as this bug was both old and "resolved/fixed". You find it here:
https://bugs.kde.org/show_bug.cgi?id=334572

Not sure if I/you should simply close the new bug given you reopened this bug?
Comment 38 Laurent Montel 2014-05-12 11:56:28 UTC
I didn't know that you opened a new bug.
Better to close new bug and keep this one opened.
Comment 39 Laurent Montel 2014-05-13 20:07:09 UTC
Git commit d901618e5d1151b24275edc0f28760ab4c3b0fa4 by Montel Laurent.
Committed on 13/05/2014 at 20:06.
Pushed by mlaurent into branch 'master'.

Fix Bug 63780 - Auto-render HTML for certain email addresses

FIXED-IN: 4.14

M  +3    -1    kmail/configuredialog/configuresecuritypage.cpp
M  +1    -1    kmail/editor/attachmentcontroller.cpp
M  +3    -2    kmail/editor/kmcomposewin.cpp
M  +2    -2    kmail/kmail_part.rc
M  +4    -5    kmail/kmcommands.cpp
M  +3    -3    kmail/kmcommands.h
M  +1    -1    kmail/kmkernel.cpp
M  +48   -50   kmail/kmmainwidget.cpp
M  +2    -4    kmail/kmmainwidget.h
M  +2    -2    kmail/kmmainwin.rc
M  +4    -5    kmail/kmreadermainwin.cpp
M  +3    -2    kmail/kmreadermainwin.h
M  +4    -13   kmail/kmreaderwin.cpp
M  +1    -1    kmail/kmreaderwin.h
M  +1    -1    kmail/messageactions.cpp
M  +5    -0    kmail/tests/displaymessageformatactionmenutest.cpp
M  +1    -1    messageviewer/viewer/urlhandlermanager.cpp
M  +1    -22   messageviewer/viewer/viewer.cpp
M  +0    -2    messageviewer/viewer/viewer.h
M  +9    -31   messageviewer/viewer/viewer_p.cpp
M  +1    -3    messageviewer/viewer/viewer_p.h
M  +2    -2    mobile/mail/mainview.cpp

http://commits.kde.org/kdepim/d901618e5d1151b24275edc0f28760ab4c3b0fa4
Comment 40 Orion 2014-05-14 10:28:59 UTC
Great news! It could not be backported to 4.13.2 or something? If I dont keep an eye on it this can make KMail/Kontact chew up close to 1 Gb RAM
Comment 41 Laurent Montel 2014-05-14 17:23:51 UTC
(In reply to comment #40)
> Great news! It could not be backported to 4.13.2 or something? If I dont
> keep an eye on it this can make KMail/Kontact chew up close to 1 Gb RAM

no I can't it added some new i18n and big changes in code.
For next version :)
Comment 42 Jason Vas Dias 2015-01-03 16:15:18 UTC
Please can we have an Account (Receiving)  "trusted HTML" mode option whereby all email downloaded
from certain IMAP (Exchange) servers (ours converts everything to HTML) is "trusted" to be
auto-rendered WITHOUT loading external references, and WITH preferring plain-text alternates
over HTML alternates ?  Why is it a security risk to render HTML WITHOUT LOADING EXT. REFS. ?
ie. I don't want to "prefer HTML over text/plain" , I don't want to load external links, but I do want
internal image attachments and HTML rendered automatically IFF the message is downloaded from 
certain Exchange IMAP servers , and I do want to prefer to display the text/plain alternate MIME section
 if also attached along with the text/html section, with an option to display the HTML version. 
 Is there really no way to go about this ?
This really makes KMail unusable for corporate MS-Office-365 Exchange accounts like the one I must use (along with KMail's lack of Calendar message support).
It looks I must use evolution for this account.
Do I need to raise a new bug about this ?  
Thanks, Jason
Comment 43 Jason Vas Dias 2015-01-03 17:10:53 UTC
or actually, rather than Evolution, I'm migrating to gnus ...
Comment 44 Jason Vas Dias 2015-01-04 16:27:51 UTC
Can't believe how easy migrating to emacs gnus + gnutls + starttls + w3 was, 
and how much nicer an email client it is to deal with than KMail .
Sorry, but kmail has lost one long-time user to gnus , largely because
of its HTML hangups and lack of Calendar messaging and insistence on
threaded message display & busy-waiting & polling & downloading all my messages &
consuming huge amounts of storage .  Good bye KMail!
Comment 45 Laurent Montel 2015-01-04 18:32:48 UTC
Ok so good luck with gnus
Comment 46 Orion 2015-01-04 18:46:54 UTC
(In reply to Jason Vas Dias from comment #42)
> Please can we have an Account (Receiving)  "trusted HTML" mode option
> whereby all email downloaded
> from certain IMAP (Exchange) servers (ours converts everything to HTML) is
> "trusted" to be
> auto-rendered WITHOUT loading external references, and WITH preferring
> plain-text alternates
> over HTML alternates ?  Why is it a security risk to render HTML WITHOUT
> LOADING EXT. REFS. ?
> ie. I don't want to "prefer HTML over text/plain" , I don't want to load
> external links, but I do want
> internal image attachments and HTML rendered automatically IFF the message
> is downloaded from 
> certain Exchange IMAP servers , and I do want to prefer to display the
> text/plain alternate MIME section
>  if also attached along with the text/html section, with an option to
> display the HTML version. 
>  Is there really no way to go about this ?
> This really makes KMail unusable for corporate MS-Office-365 Exchange
> accounts like the one I must use (along with KMail's lack of Calendar
> message support).
> It looks I must use evolution for this account.
> Do I need to raise a new bug about this ?  
> Thanks, Jason

I would submit a wish for a new function rather than add comments to a fixed bug
Comment 47 Christophe Marin 2022-07-26 19:11:22 UTC
*** Bug 53801 has been marked as a duplicate of this bug. ***