|
|
@ -19,6 +19,15 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV |
|
|
|
// user not found |
|
|
|
// user not found |
|
|
|
exit; |
|
|
|
exit; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$pref = TB_PREF; |
|
|
|
|
|
|
|
// Don't lock pref if the user is member of some special groups |
|
|
|
|
|
|
|
// regardless of the setting |
|
|
|
|
|
|
|
foreach ($user[0]['posixmemberof'] as $group){ |
|
|
|
|
|
|
|
if (in_array($group, $NOENFORCEGROUPS)){ |
|
|
|
|
|
|
|
$pref = 'defaultPref'; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
exit; |
|
|
|
exit; |
|
|
@ -37,24 +46,24 @@ else { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Local Account |
|
|
|
// Local Account |
|
|
|
<?php echo TB_PREF;?>("mail.account.account1.server", "server1");
|
|
|
|
<?php echo $pref;?>("mail.account.account1.server", "server1");
|
|
|
|
<?php echo TB_PREF;?>("mail.accountmanager.localfoldersserver", "server1");
|
|
|
|
<?php echo $pref;?>("mail.accountmanager.localfoldersserver", "server1");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders");
|
|
|
|
<?php echo $pref;?>("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server1.hostname", "Local Folders");
|
|
|
|
<?php echo $pref;?>("mail.server.server1.hostname", "Local Folders");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server1.name", "Dossiers locaux");
|
|
|
|
<?php echo $pref;?>("mail.server.server1.name", "Dossiers locaux");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server1.type", "none");
|
|
|
|
<?php echo $pref;?>("mail.server.server1.type", "none");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server1.userName", "nobody");
|
|
|
|
<?php echo $pref;?>("mail.server.server1.userName", "nobody");
|
|
|
|
|
|
|
|
|
|
|
|
// SMTP config |
|
|
|
// SMTP config |
|
|
|
<?php echo TB_PREF;?>("mail.smtp.defaultserver", "smtp1");
|
|
|
|
<?php echo $pref;?>("mail.smtp.defaultserver", "smtp1");
|
|
|
|
<?php echo TB_PREF;?>("mail.smtpservers", "smtp1");
|
|
|
|
<?php echo $pref;?>("mail.smtpservers", "smtp1");
|
|
|
|
<?php echo TB_PREF;?>("mail.smtpserver.smtp1.try_ssl", 3);
|
|
|
|
<?php echo $pref;?>("mail.smtpserver.smtp1.try_ssl", 3);
|
|
|
|
<?php echo TB_PREF;?>("mail.smtpserver.smtp1.port", <?php echo SMTP_PORT; ?>);
|
|
|
|
<?php echo $pref;?>("mail.smtpserver.smtp1.port", <?php echo SMTP_PORT; ?>);
|
|
|
|
<?php echo TB_PREF;?>("mail.smtpserver.smtp1.hostname", "<?php echo SMTP_SERVER; ?>");
|
|
|
|
<?php echo $pref;?>("mail.smtpserver.smtp1.hostname", "<?php echo SMTP_SERVER; ?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.smtpserver.smtp1.username", "<?php echo $uid; ?>");
|
|
|
|
<?php echo $pref;?>("mail.smtpserver.smtp1.username", "<?php echo $uid; ?>");
|
|
|
|
|
|
|
|
|
|
|
|
// Default account is acocunt2 (the personal account) |
|
|
|
// Default account is acocunt2 (the personal account) |
|
|
|
<?php echo TB_PREF;?>("mail.accountmanager.defaultaccount", "account2");
|
|
|
|
<?php echo $pref;?>("mail.accountmanager.defaultaccount", "account2");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
@ -67,23 +76,23 @@ $identities = '' |
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
// Personnal account |
|
|
|
// Personnal account |
|
|
|
<?php echo TB_PREF;?>("mail.account.account2.server", "server<?php echo $server?>");
|
|
|
|
<?php echo $pref;?>("mail.account.account2.server", "server<?php echo $server?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server2.hostname", "<?php echo IMAP_SERVER; ?>");
|
|
|
|
<?php echo $pref;?>("mail.server.server2.hostname", "<?php echo IMAP_SERVER; ?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server2.name", "<?php echo $user[0]['mail'][0]; ?>");
|
|
|
|
<?php echo $pref;?>("mail.server.server2.name", "<?php echo $user[0]['mail'][0]; ?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server2.port", <?php echo IMAP_PORT; ?>);
|
|
|
|
<?php echo $pref;?>("mail.server.server2.port", <?php echo IMAP_PORT; ?>);
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server2.socketType", 3);
|
|
|
|
<?php echo $pref;?>("mail.server.server2.socketType", 3);
|
|
|
|
<?php echo TB_PREF;?>("mail.server.server2.type", "imap");
|
|
|
|
<?php echo $pref;?>("mail.server.server2.type", "imap");
|
|
|
|
<?php echo TB_PREF;?>("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++){ |
|
|
|
?> |
|
|
|
?> |
|
|
|
<?php echo TB_PREF;?>("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]; ?>");
|
|
|
|
<?php echo TB_PREF;?>("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]; ?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.identity.id<?php echo $id; ?>.smtpServer", "smtp1");
|
|
|
|
<?php echo $pref;?>("mail.identity.id<?php echo $id; ?>.smtpServer", "smtp1");
|
|
|
|
<?php echo TB_PREF;?>("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]; ?>");
|
|
|
|
<?php echo TB_PREF;?>("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");
|
|
|
@ -95,20 +104,20 @@ $account++; |
|
|
|
$id++; |
|
|
|
$id++; |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
<?php echo TB_PREF;?>("mail.account.account2.identities", "<?php echo $identities;?>");
|
|
|
|
<?php echo $pref;?>("mail.account.account2.identities", "<?php echo $identities;?>");
|
|
|
|
<?php echo TB_PREF;?>("mail.accountmanager.accounts", "account1,account2");
|
|
|
|
<?php echo $pref;?>("mail.accountmanager.accounts", "account1,account2");
|
|
|
|
|
|
|
|
|
|
|
|
// Disable auto updates |
|
|
|
// Disable auto updates |
|
|
|
<?php echo TB_PREF;?>("app.update.enabled", false);
|
|
|
|
<?php echo $pref;?>("app.update.enabled", false);
|
|
|
|
<?php echo TB_PREF;?>("app.update.auto", false);
|
|
|
|
<?php echo $pref;?>("app.update.auto", false);
|
|
|
|
|
|
|
|
|
|
|
|
// Extensions |
|
|
|
// Extensions |
|
|
|
<?php echo TB_PREF;?>("extensions.installDistroAddons", true);
|
|
|
|
<?php echo $pref;?>("extensions.installDistroAddons", true);
|
|
|
|
<?php echo TB_PREF;?>("extensions.enabledScopes", 13);
|
|
|
|
<?php echo $pref;?>("extensions.enabledScopes", 13);
|
|
|
|
<?php echo TB_PREF;?>("extensions.autoDisableScopes", 2);
|
|
|
|
<?php echo $pref;?>("extensions.autoDisableScopes", 2);
|
|
|
|
|
|
|
|
|
|
|
|
// Spam |
|
|
|
// Spam |
|
|
|
<?php echo TB_PREF;?>("mail.adaptivefilters.junk_threshold", 500);
|
|
|
|
<?php echo $pref;?>("mail.adaptivefilters.junk_threshold", 500);
|
|
|
|
|
|
|
|
|
|
|
|
// Checks IMAP folders |
|
|
|
// Checks IMAP folders |
|
|
|
defaultPref("mail.check_all_imap_folders_for_new", true); |
|
|
|
defaultPref("mail.check_all_imap_folders_for_new", true); |
|
|
@ -125,14 +134,14 @@ defaultPref("mail.imap.expunge_threshold_number", 100); |
|
|
|
|
|
|
|
|
|
|
|
// Adds the domain from your email address to the |
|
|
|
// Adds the domain from your email address to the |
|
|
|
// recipients email address if it doesn't have a domain |
|
|
|
// recipients email address if it doesn't have a domain |
|
|
|
<?php echo TB_PREF;?>("mail.enable_autocomplete", true);
|
|
|
|
<?php echo $pref;?>("mail.enable_autocomplete", true);
|
|
|
|
|
|
|
|
|
|
|
|
// Hide useless messages |
|
|
|
// Hide useless messages |
|
|
|
<?php echo TB_PREF;?>("mail.ui.show.migration.on.upgrade", false);
|
|
|
|
<?php echo $pref;?>("mail.ui.show.migration.on.upgrade", false);
|
|
|
|
<?php echo TB_PREF;?>("app.update.showInstalledUI", false);
|
|
|
|
<?php echo $pref;?>("app.update.showInstalledUI", false);
|
|
|
|
<?php echo TB_PREF;?>("browser.startup.homepage_override.mstone", "ignore");
|
|
|
|
<?php echo $pref;?>("browser.startup.homepage_override.mstone", "ignore");
|
|
|
|
<?php echo TB_PREF;?>("mailnews.start_page_override.mstone", "ignore");
|
|
|
|
<?php echo $pref;?>("mailnews.start_page_override.mstone", "ignore");
|
|
|
|
<?php echo TB_PREF;?>("mail.rights.version", 1);
|
|
|
|
<?php echo $pref;?>("mail.rights.version", 1);
|
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
|
// Include other conf fragment if they exist |
|
|
|
// Include other conf fragment if they exist |
|
|
|