|
|
@ -27,24 +27,24 @@ else { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Compte local |
|
|
|
// Compte local |
|
|
|
lockPref("mail.account.account1.server", "server1"); |
|
|
|
<?php echo PREF;?>("mail.account.account1.server", "server1");
|
|
|
|
lockPref("mail.accountmanager.localfoldersserver", "server1"); |
|
|
|
<?php echo PREF;?>("mail.accountmanager.localfoldersserver", "server1");
|
|
|
|
lockPref("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders"); |
|
|
|
<?php echo PREF;?>("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders");
|
|
|
|
lockPref("mail.server.server1.hostname", "Local Folders"); |
|
|
|
<?php echo PREF;?>("mail.server.server1.hostname", "Local Folders");
|
|
|
|
lockPref("mail.server.server1.name", "Dossiers locaux"); |
|
|
|
<?php echo PREF;?>("mail.server.server1.name", "Dossiers locaux");
|
|
|
|
lockPref("mail.server.server1.type", "none"); |
|
|
|
<?php echo PREF;?>("mail.server.server1.type", "none");
|
|
|
|
lockPref("mail.server.server1.userName", "nobody"); |
|
|
|
<?php echo PREF;?>("mail.server.server1.userName", "nobody");
|
|
|
|
|
|
|
|
|
|
|
|
// SMTP |
|
|
|
// SMTP |
|
|
|
lockPref("mail.smtp.defaultserver", "smtp1"); |
|
|
|
<?php echo PREF;?>("mail.smtp.defaultserver", "smtp1");
|
|
|
|
lockPref("mail.smtpservers", "smtp1"); |
|
|
|
<?php echo PREF;?>("mail.smtpservers", "smtp1");
|
|
|
|
lockPref("mail.smtpserver.smtp1.try_ssl", 3); |
|
|
|
<?php echo PREF;?>("mail.smtpserver.smtp1.try_ssl", 3);
|
|
|
|
lockPref("mail.smtpserver.smtp1.port", <?php echo SMTP_PORT; ?>);
|
|
|
|
<?php echo PREF;?>("mail.smtpserver.smtp1.port", <?php echo SMTP_PORT; ?>);
|
|
|
|
lockPref("mail.smtpserver.smtp1.hostname", "<?php echo SMTP_SERVER; ?>");
|
|
|
|
<?php echo PREF;?>("mail.smtpserver.smtp1.hostname", "<?php echo SMTP_SERVER; ?>");
|
|
|
|
lockPref("mail.smtpserver.smtp1.username", "<?php echo $uid; ?>");
|
|
|
|
<?php echo PREF;?>("mail.smtpserver.smtp1.username", "<?php echo $uid; ?>");
|
|
|
|
|
|
|
|
|
|
|
|
// Compte par défaut |
|
|
|
// Compte par défaut |
|
|
|
lockPref("mail.accountmanager.defaultaccount", "account2"); |
|
|
|
<?php echo PREF;?>("mail.accountmanager.defaultaccount", "account2");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -56,23 +56,23 @@ $accountlist = 'account1'; |
|
|
|
$identities = '' |
|
|
|
$identities = '' |
|
|
|
?> |
|
|
|
?> |
|
|
|
// Compte personnel |
|
|
|
// Compte personnel |
|
|
|
lockPref("mail.account.account2.server", "server<?php echo $server?>");
|
|
|
|
<?php echo PREF;?>("mail.account.account2.server", "server<?php echo $server?>");
|
|
|
|
lockPref("mail.server.server2.hostname", "<?php echo IMAP_SERVER; ?>");
|
|
|
|
<?php echo PREF;?>("mail.server.server2.hostname", "<?php echo IMAP_SERVER; ?>");
|
|
|
|
lockPref("mail.server.server2.name", "<?php echo $user[0]['mail'][0]; ?>");
|
|
|
|
<?php echo PREF;?>("mail.server.server2.name", "<?php echo $user[0]['mail'][0]; ?>");
|
|
|
|
lockPref("mail.server.server2.port", <?php echo IMAP_PORT; ?>);
|
|
|
|
<?php echo PREF;?>("mail.server.server2.port", <?php echo IMAP_PORT; ?>);
|
|
|
|
lockPref("mail.server.server2.socketType", 3); |
|
|
|
<?php echo PREF;?>("mail.server.server2.socketType", 3);
|
|
|
|
lockPref("mail.server.server2.type", "imap"); |
|
|
|
<?php echo PREF;?>("mail.server.server2.type", "imap");
|
|
|
|
lockPref("mail.server.server2.userName", "<?php echo $uid; ?>");
|
|
|
|
<?php echo PREF;?>("mail.server.server2.userName", "<?php echo $uid; ?>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
|
for ($i=0; $i < count($user[0]['mail'])-1; $i++){ |
|
|
|
for ($i=0; $i < count($user[0]['mail'])-1; $i++){ |
|
|
|
?> |
|
|
|
?> |
|
|
|
lockPref("mail.identity.id<?php echo $id; ?>.fullName", "<?php echo $user[0]['cn'][0]; ?>");
|
|
|
|
<?php echo PREF;?>("mail.identity.id<?php echo $id; ?>.fullName", "<?php echo $user[0]['cn'][0]; ?>");
|
|
|
|
lockPref("mail.identity.id<?php echo $id; ?>.organization", "<?php echo $user[0]['o'][0]; ?>");
|
|
|
|
<?php echo PREF;?>("mail.identity.id<?php echo $id; ?>.organization", "<?php echo $user[0]['o'][0]; ?>");
|
|
|
|
lockPref("mail.identity.id<?php echo $id; ?>.smtpServer", "smtp1");
|
|
|
|
<?php echo PREF;?>("mail.identity.id<?php echo $id; ?>.smtpServer", "smtp1");
|
|
|
|
lockPref("mail.identity.id<?php echo $id; ?>.useremail", "<?php echo $user[0]['mail'][$i]; ?>");
|
|
|
|
<?php echo PREF;?>("mail.identity.id<?php echo $id; ?>.useremail", "<?php echo $user[0]['mail'][$i]; ?>");
|
|
|
|
lockPref("mail.identity.id<?php echo $id; ?>.valid", true);
|
|
|
|
<?php echo PREF;?>("mail.identity.id<?php echo $id; ?>.valid", true);
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.fcc_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Sent");
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.fcc_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Sent");
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.draft_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Drafts");
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.draft_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Drafts");
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.stationery_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Templates");
|
|
|
|
defaultPref("mail.identity.id<?php echo $id; ?>.stationery_folder", "imap://<?php echo $uid; ?>@<?php echo IMAP_SERVER; ?>/Templates");
|
|
|
@ -85,20 +85,20 @@ $account++; |
|
|
|
$id++; |
|
|
|
$id++; |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
lockPref("mail.account.account2.identities", "<?php echo $identities;?>");
|
|
|
|
<?php echo PREF;?>("mail.account.account2.identities", "<?php echo $identities;?>");
|
|
|
|
lockPref("mail.accountmanager.accounts", "account1,account2"); |
|
|
|
<?php echo PREF;?>("mail.accountmanager.accounts", "account1,account2");
|
|
|
|
|
|
|
|
|
|
|
|
// Mise a jour |
|
|
|
// Mise a jour |
|
|
|
lockPref("app.update.enabled", false); |
|
|
|
<?php echo PREF;?>("app.update.enabled", false);
|
|
|
|
lockPref("app.update.auto", false); |
|
|
|
<?php echo PREF;?>("app.update.auto", false);
|
|
|
|
|
|
|
|
|
|
|
|
// Extension |
|
|
|
// Extension |
|
|
|
lockPref("extensions.installDistroAddons", true); |
|
|
|
<?php echo PREF;?>("extensions.installDistroAddons", true);
|
|
|
|
lockPref("extensions.enabledScopes", 13); |
|
|
|
<?php echo PREF;?>("extensions.enabledScopes", 13);
|
|
|
|
lockPref("extensions.autoDisableScopes", 2); |
|
|
|
<?php echo PREF;?>("extensions.autoDisableScopes", 2);
|
|
|
|
|
|
|
|
|
|
|
|
// Spam |
|
|
|
// Spam |
|
|
|
lockPref("mail.adaptivefilters.junk_threshold", 500); |
|
|
|
<?php echo PREF;?>("mail.adaptivefilters.junk_threshold", 500);
|
|
|
|
|
|
|
|
|
|
|
|
// Checks |
|
|
|
// Checks |
|
|
|
defaultPref("mail.check_all_imap_folders_for_new", true); |
|
|
|
defaultPref("mail.check_all_imap_folders_for_new", true); |
|
|
|