GNOME Bugzilla – Bug 200082
Different HTML for printed messages
Last modified: 2013-09-10 14:02:43 UTC
*** bug 200083 has been marked as a duplicate of this bug. ***
This has now been started, and various printing-related GtkHTML bugs entered.
We need to generate special HTML for printing.
Generating different HTML for printing should be easy... we just call the formatter with some flag set in MailDisplay->data, and the relevant formatting routines can check that.
*** bug 204012 has been marked as a duplicate of this bug. ***
We also need to ignore the theme colors when printing
*** bug 206459 has been marked as a duplicate of this bug. ***
Also, as discussed in bug 210346, you should be able to print a message whether or not it's displayed.
Is this a 1.1 thing?
I think we should do this for 1.2
being able to print with no message displayed is a real pita.
Fixed in CVS.
There's more to this: - URLs should not be blue - Attachments should be summarized rather than being printed as objects that you can't click on on the printed page - We may want to redo the headers - We need page numbers - ...
A few more thoughts: * replies, if the user has selected the default color for citations, are printed too lightly to be really legible. They should be printed in black, not light grey. * it would be useful to print the date/time that the message is printed * "Reply-to" seems particularly irrelevant wrt printing
OK, here is what is done so far: * Stuff to hack around funny styles is disabled when printing. * You can print messages when the preview pane is closed. * URLs/addresses aren't colored. * Attachments are either summarized or just printed. The little bar with the preview and the control for making them appear/disappear isn't printed. * The user-selected citation color is ignored when printing. It is always just black. The main thing that is left to do is headers/footers. Anna: I'm not sure if dropping headers is a good idea. Knowing what address someone wants mail sent to is valuable information that could be useful to have in a printed form.
Reply-To should be left there. As for the citation -- what if we make the text Bold or Italics instead?
As I mentioned above, the main to-do here is headers and footers.
what needs to be in the headers/footers? marking as 1.1.0 since I *think* this could probably be done by then
So I've added "Page %d of %d" footer, changed citation so that it's printed in italic. I think it's OK to leave it for now. Once we move to GNOME 2.0 we could do more complicated things as printing cfg dialog.