Posts Tagged ‘Thunderbird’

Mozilla Thunderbird and the order of accounts

Wednesday, October 27th, 2004

It has long annoyed me that I couldn’t control the order my mail accounts are listed in the left pane in Mozilla Thunderbird.

In the end I decided to just edit my ~/.mozilla-thunderbird/default.xxx/prefs.js file to get it right, and after several unsuccessful attempts I found out how easy it is.

Open your prefs.js file in an editor and find a line like

user_pref("mail.accountmanager.accounts", "account1,account2,account3,account4,account5,account6");

The number of accounts depend on how many you have created while you have used that profile.

Anyway, just reorder the list. You’ll have to find the definition of each account to identify it, but it is not that hard.

Too bad there isn’t a GUI user interface for this.

Printing from Mozilla Thunderbird through Xprint

Thursday, September 23rd, 2004

I finally managed to print emails decently from Mozilla Thunderbird with the Xprint backend. Until now it has always come out too big, too small, in the wrong fonts or something else. It has never printed anything presentable.

The necessary instruction on how to make it work are here.

First of all, remove the copies of the PostScript fonts that Xprint keeps for itself. On my Debian systems they’re found at /usr/share/Xprint/xserver/C/print/models/PSdefault/fonts. Just remove the directory. It has to be done as root.

Then go to your Mozilla Thunderbird preferences directory. It’ll be something like ~/.mozilla-thunderbird/default.XXX/ where the last three ‘X’ are individual. There ought to be a chrome sub-folder here, and in that you’ll have to place a file called userContent.css. Just edit it with any editor of your choice. Create it if it doesn’t exist. It has to contain this text:

@media print {
   body, table {
       color: black;
       font-family: 'Times New Roman', times, serif;
       font-size: 12pt;
   }
   tt, pre {
       font-family: 'Courier New', courier, typewriter, monospace;
   }
   :link, :visited {
       color: black !important;
       text-decoration: underline !important;
   }
   .moz-text-plain {
       font-family: 'Courier New',courier,monospace !important;
   }
}

It might seem like black magic if you’re not accustomed to Cascading Style Sheets, but it tells Mozilla Thunderbird what fonts and sizes to use for printing.

Last thing is to exit Mozilla Thunderbird and restart it to get the style sheet to take effect.