openattachmentbyextension Thunderbird extension for WPKG on iPasserelle

19 lines
552 B

13 years ago
// OpenAttachmentByExtension
// Contourne un bug dans Thunderbird si le Content-Type n'est pas correct
// 64bits ?
if(getenv("PROGRAMFILES(x86)") != "") {
var path_sumatrapdf = "C:\\Program Files (x86)\\SumatraPDF\\SumatraPDF.exe";
}
// 32bits
else {
var path_sumatrapdf = "C:\\Program Files\\SumatraPDF\\SumatraPDF.exe";
}
lockPref("openattachment.extension.PDF",path_sumatrapdf);
lockPref("openattachment.extension.pdf",path_sumatrapdf);
lockPref("openattachment.use_charset",false);
// Fin de la configuration de OpenAttachmentByExtension