After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 314291 - colors in HTML email not showing up in 2.3.x or 2.2.x (used to show in 2.0.x)
colors in HTML email not showing up in 2.3.x or 2.2.x (used to show in 2.0.x)
Status: RESOLVED FIXED
Product: balsa
Classification: Other
Component: general
2.3.x
Other All
: Normal normal
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-23 18:16 UTC by Corporate Gadfly
Modified: 2005-10-22 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot with colors with balsa 2.0.15 (92.49 KB, image/png)
2005-08-23 18:17 UTC, Corporate Gadfly
  Details
screenshot with no colors for same message (balsa 2.2.6) (86.15 KB, image/png)
2005-08-23 18:18 UTC, Corporate Gadfly
  Details
User selection of preferred html widget (2.91 KB, patch)
2005-08-23 22:41 UTC, Pawel Salek
none Details | Review

Description Corporate Gadfly 2005-08-23 18:16:03 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:
Comment 1 Corporate Gadfly 2005-08-23 18:17:05 UTC
Created attachment 51209 [details]
screenshot with colors with balsa 2.0.15
Comment 2 Corporate Gadfly 2005-08-23 18:18:05 UTC
Created attachment 51210 [details]
screenshot with no colors for same message (balsa 2.2.6)
Comment 3 Corporate Gadfly 2005-08-23 18:18:55 UTC
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).
Comment 4 Pawel Salek 2005-08-23 19:15:05 UTC
Are both versions of balsa linked against the same gtkhtml library? (ldd `which
balsa` will tell you).
Comment 5 Corporate Gadfly 2005-08-23 20:45:06 UTC
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.
Comment 6 Corporate Gadfly 2005-08-23 20:51:47 UTC
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)
Comment 7 Peter Bloomfield 2005-08-23 22:03:09 UTC
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.
Comment 8 Pawel Salek 2005-08-23 22:41:28 UTC
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).
Comment 9 Corporate Gadfly 2005-08-24 14:35:00 UTC
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)...
Comment 10 Peter Bloomfield 2005-08-24 15:32:07 UTC
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>.
Comment 11 Peter Bloomfield 2005-10-22 16:13:19 UTC
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...