diff --git a/root/usr/share/mozilla-mcd/thunderbird.php b/root/usr/share/mozilla-mcd/thunderbird.php index 8b611f7..2ac7093 100644 --- a/root/usr/share/mozilla-mcd/thunderbird.php +++ b/root/usr/share/mozilla-mcd/thunderbird.php @@ -25,6 +25,16 @@ else { } ?> +// Linux / UNIX ? +if(getenv("USER") != "") { + var path_sep = '/'; + var path_profile = getenv("HOME"); +} +// Windows ? +else { + var path_sep = '\\'; + var path_profile = getenv("USERPROFILE"); +} // Compte local ("mail.account.account1.server", "server1"); @@ -55,6 +65,7 @@ $server = 2; $accountlist = 'account1'; $identities = '' ?> + // Compte personnel ("mail.account.account2.server", "server"); ("mail.server.server2.hostname", ""); @@ -77,7 +88,7 @@ defaultPref("mail.identity.id.fcc_folder", "imap://.draft_folder", "imap://@/Drafts"); defaultPref("mail.identity.id.stationery_folder", "imap://@/Templates"); defaultPref("mail.identity.id.attach_signature", true); -defaultPref("mail.identity.id.sig_file-rel", "[ProfD]../../../../../signature/email.html"); +defaultPref("mail.identity.id.sig_file", path_profile+path_sep+"signature"+path_sep+"email.html");