#!/bin/sh
#
# Title:  Thunderbird Defaults
# Author: Charles Dominguez (cfdoming)
# Description:
#	Generates the default Mozilla Thunderbird Preferences for MIT.
#	Options in this file are placed in prefs.js
#	and can be overridden by the user through the UI.
#	
# Change Log:
# 2004-03-13  cfdoming  Initial version.
# 2004-04-19  ppham     Fixed print_command for both Postscript/default and
#                       and default printers to use ${PRINTER}2.
#                       Added changelog.
# 2004-08-22  cfdoming  Updated print options, streamlined settings
#



# Security Options
echo 'user_pref("signon.rememberSignons", false);
user_pref("javascript.allow.mailnews", false);
user_pref("mail.password_protect_local_cache", true);'

# Privacy Options
echo 'user_pref("mailnews.message_display.disable_remote_image", true);
user_pref("mail.mdn.report.not_in_to_cc", 0);'

# Block Bad Mail Behavior
echo 'user_pref("mailnews.display.sanitizeJunkMail", true);
user_pref("mailnews.message_display.disable_remote_image", true);'

# Store addresses of sent messages in "collected addresses"
echo 'user_pref("mail.collect_addressbook", "moz-abmdbdirectory://history.mab");'

# Fix annoying UI behavior
echo 'user_pref("browser.download.progressDnldDialog.keepAlive", false);
user_pref("mail.biff.play_sound", false);
user_pref("mail.display_glyph", false);
user_pref("mail.server.default.abbreviate", false);
user_pref("mailnews.mark_message_read.delay", true);
user_pref("mailnews.mark_message_read.delay.interval", 2);'

# Set readable font defaults
echo 'user_pref("font.minimum-size.x-western", 10);'

# Default character set to use
echo 'user_pref("mailnews.send_default_charset", "UTF-8");
user_pref("mailnews.view_default_charset", "UTF-8");'

# Set Default Printer Options
echo 'user_pref("print.printer_list", "default acantha2 ajax2 barker2 bias2 bob2 celine2 ceres2 corfu2 electra2 fiber2 hayden2 helios2 homer2 lotis2 maia2 metis2 nysa2 peecs2 picus2 pietro2 pindar2 plato2 pulp2 python2 sanda2 savion2 varan2 acantha ajax barker bias bob celine ceres corfu electra fiber hayden helios homer lotis maia metis nysa peecs picus pietro pindar plato pulp python sanda savion varan");
user_pref("print.print_color", false); 
user_pref("print.postscript.print_command", "lpr -z ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
user_pref("print.print_command", "lpr -z -P${MOZ_PRINTER_NAME}");
user_pref("print.printer_PostScript/default.print_command", "lpr -z -P${PRINTER}2");'



