Bug 591998

Summary: Printing over Fancy HTML Viewer + html2ps does not work
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: claws-mail-pluginsAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 13CC: andreas.bierfert, bugs.michael
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-24 18:15:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Raphael Groner 2010-05-13 16:35:39 UTC
Description of problem:
Printing over Fancy HTML Viewer + html2ps does not work. Output is some css garbage text, not the content of the mail.

Version-Release number of selected component (if applicable):
This plugin renders HTML mail using the WebKit 1.1.19 library.

Version: 0.9.9

How reproducible:
Always.

Steps to Reproduce:
1. Click on a Mail with an HTML part.
2. Optionally switch to view the text part.
3. Try to print via File/Print.
  
Actual results:
CSS garbage output

Expected results:
Content of mail.

Additional info:
Why is html2ps no required dependency for claws-mail. Anyway, it does not work in both cases.

Comment 1 Michael Schwendt 2011-01-23 13:56:21 UTC
It would be wrong to make html2ps a dependency of claws-mail. It is fully optional and only needed for printing HTML with either the "fancy" and "gtkhtml2_viewer" plugin. It is not needed for using these plugins for rendering HTML mails.


Further, the error dialog is clear about this optional requirement:

| ERROR
|
| Printing HTML is only possible
| if the program 'html2ps' is installed.


As whether the printed file is broken due to a problem with html2ps or Claws Mail, when printing to a file, it here certainly looks like it was generated from the HTML mail file created below $HOME/.claws-mail/mimetmp/ temporarily.

If you save the mail's html part and run html2ps on it manually, do you get better results? Here, I have a test html mail that results in an empty page if printed either way. It looks to me as if html2ps is the culprit.


> 2. Optionally switch to view the text part.

That works for me and doesn't use "fancy".

Comment 2 Raphael Groner 2011-01-24 18:15:16 UTC
I guess that this issue was with Fedora 13, though I am using Fedora 14 in the meanwhile and claws-mail without any html renderer. Further, I do not have the failing mail any more.

"fancy" and "gtkhtml2_viewer" plugins are each separated packages. I think I did report against the component "claws-mail-plugins" because no more appropriately special component available.

You are right that html2ps is optional. It is a decision of the maintainer to let the user see the print functionality working out-of-the-box or to request an additional installation of html2ps with the pop-up message. Maybe it is good to have dependencies in both special plugin packages - but of course no good idea for the main "claws-mail" package.

Because I can not reproduce any more the exactly same original issue, I will close this bug.