GNOME Bugzilla – Bug 314291
colors in HTML email not showing up in 2.3.x or 2.2.x (used to show in 2.0.x)
Last modified: 2005-10-22 16:13:19 UTC
Please describe the problem: colors in HTML email are not showing up in 2.3.x (or 2.2.x). Instead, the message shows up in monochrome. This used to work fine in 2.0.x. If you are curious, these emails are generated by CVSspam 0.2.11: http://www.badgers-in-foil.co.uk/projects/cvsspam/ I am running Gentoo Linux (kernel 2.6.10) gcc-3.4.4, glibc-2.3.5. I have libgtkhtml versions 2.6.3, 3.2.5, 3.6.2. If I compile balsa 2.0.15 now on the system, I will see the colors. Compiling the newer 2.2.x or 2.3.x versions gives me monochrome. Thanks in advance. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 51209 [details] screenshot with colors with balsa 2.0.15
Created attachment 51210 [details] screenshot with no colors for same message (balsa 2.2.6)
I have only attached screenshots for 2.0.15 and 2.2.6. No point in attaching the screenshot for 2.3.4 (as the result will be the same as 2.2.6).
Are both versions of balsa linked against the same gtkhtml library? (ldd `which balsa` will tell you).
For balsa 2.0.15: -> ldd /usr/bin/balsa | grep gtkhtml libgtkhtml-2.so.0 => /usr/lib/libgtkhtml-2.so.0 (0xa7b0e000) For balsa 2.3.4: -> ldd /usr/bin/balsa | egrep libgtkhtml libgtkhtml-3.6.so.18 => /usr/lib/libgtkhtml-3.6.so.18 (0xa7eba000) So, the gtkhtml versions are different.
And for balsa 2.2.6: -> ldd /usr/bin/balsa | egrep gtkhtml libgtkhtml-3.1.so.11 => /usr/lib/libgtkhtml-3.1.so.11 (0xa7eb9000)
Confirmed. I disabled gtkhtml3 by sudo mv /usr/lib/pkgconfig/libgtkhtml-3.6.pc /usr/lib/pkgconfig/libgtkhtml-3.6.pc-save and rebuilt with ./config.status --recheck && make and the rebuilt Balsa showed a test mail (from the same site) with colors. Balsa builds with gtkhtml3 by preference, so there's no other way to force it to use gtkhtml2 instead.
Created attachment 51221 [details] [review] User selection of preferred html widget One could also use the --with-gtkhtml configure flag to indicate the user's preference - the attached patch allows exactly this. One could also imagine that specific selection would make the configure process fail if the requested version is not found (the patch as attached changes only the package search order).
I have a newbie question. What happens when Gentoo decides to remove the gtkhtml2 libraries? Are we saying that gtkhtml3 will NOT display color HTML? (little confused and curious)...
Is that a hypothetical question?! Yes, it seems that gtkhtml3 does not display color in these messages. They use a <style> tag to set up the formatting in an html comment, and it's possible that gtkhtml3 ignores it. Gtkhtml3 is a port of the original gtkhtml(1?), and there's a long history--see <http://mail.gnome.org/archives/gnome-devel-list/2002-September/msg00002.html>.
Pawel's patch allows the user to specify a preference for gtkhtml-2 instead of gtkhtml-3. I don't see that Balsa can do any more than that. Resolving as FIXED...