diff -urN --exclude=CVS mailadmin-1.5.1/add_user.php mailadmin/add_user.php --- mailadmin-1.5.1/add_user.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/add_user.php 2003-12-24 15:25:31.000000000 -0600 @@ -32,27 +32,38 @@ } /* Attempting to create a new mailbox. */ - $newmailbox = "{".$mail_server_name.":".$mail_server_port."}user.".$account_name; - $sent_mail_folder = $newmailbox.".sent-mail"; + $newmailbox = "{".$mail_server_name.":".$mail_server_port."}user".$mail_server_seperator.$account_name; + $Folders = array ("sent-mail", "SPAM", "SPAM".$mail_server_seperator."HAM", "SPAM".$mail_server_seperator."MissedSPAM", "Drafts", "Templates", "Trash"); + $createdFolders = 0; if(@imap_createmailbox($mbox,imap_utf7_encode($newmailbox))) { - if(@imap_createmailbox($mbox,imap_utf7_encode($sent_mail_folder))) { - system("./scripts/setpassword.pl ".$account_name." '".$temp_password."'"); - system("./scripts/setquota.pl ".$account_name." ".$username." ".$mail_server_name." ".$password." ".($quota * 1024)); - system("./scripts/setrights.pl ".$account_name." ".$username." ".$mail_server_name." ".$password); + for ($n=0; $n < count($Folders); $n++) + { + $Folder = each($Folders); + $folder = $newmailbox . $mail_server_seperator . $Folder[value]; + if(@imap_createmailbox($mbox,imap_utf7_encode($folder))) { + $createdFolders++; + } else { + $result = "Could not create mailbox user".$mail_server_seperator.$account_name." - ".imap_last_error(); + } + } + + if ($createdFolders == count($Folders)) + { + system("./scripts/setpassword.pl '".$account_name."' '".$temp_password."' c"); + system("./scripts/setquota.pl '".$account_name."' '".$username."' '".$mail_server_name."' '".$password."' '".($quota * 1024)."' '".$mail_server_seperator."'"); + system("./scripts/setrights.pl '".$account_name."' '".$username."' '".$mail_server_name."' '".$password."' '".$mail_server_seperator."'"); if (strcmp($enable_dbase, "Yes") == 0) { - $transaction = new transaction_log; - $transaction->submit($username, "Created new account '$account_name'"); - unset($transaction); + $transaction = new transaction_log; + $transaction->submit($username, "Created new account '$account_name'"); + unset($transaction); } - } else { - $result = "Could not create mailbox user.".$account_name." - ".imap_last_error(); - } - $result = "Created new mail account '".$account_name."'"; + $result = "Created new mail account '".$account_name."'"; + } } else { - $result = "Could not create mailbox user.".$account_name." - ".imap_last_error(); + $result = "Could not create mailbox user".$mail_server_seperator.$account_name." - ".imap_last_error(); } } ?> @@ -62,17 +73,38 @@ Mail Server Administration - Add New Email Account - +
@@ -96,7 +128,7 @@ } ?> -
+
@@ -107,7 +139,7 @@ - + @@ -124,16 +156,24 @@
Account Name:
Password:
+ +
+
+ +
+
+
- [Add] + [Add] [Reset]

+ diff -urN --exclude=CVS mailadmin-1.5.1/change_password.php mailadmin/change_password.php --- mailadmin-1.5.1/change_password.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/change_password.php 2003-12-24 14:08:20.000000000 -0600 @@ -16,11 +16,12 @@ if ($submitted) { /* If the account can not connect, we can not verify the validity of the account or the password. */ if (!user_login($username, $current_password)) { + set_cookie("MAILADMIN_EXPIRED", 0); header("Location: error/error_current.php"); exit; } - system("./scripts/setpassword.pl ".$username." '".$newpassword1."'"); + system("./scripts/setpassword.pl ".$username." '".$newpassword1."' u"); if (strcmp($enable_dbase, "Yes") == 0) { $account = new account_information; @@ -46,24 +47,31 @@ Mail Server Administration - Change Password - +
@@ -81,7 +89,7 @@
Change Password

-
+ @@ -99,15 +107,19 @@
-
- +

Note: You will be logged off, and will need to log back in.
- [Change] + + + + [Change] [Reset] +
+ diff -urN --exclude=CVS mailadmin-1.5.1/docs/mailadmin Installation Notes.html mailadmin/docs/mailadmin Installation Notes.html --- mailadmin-1.5.1/docs/mailadmin Installation Notes.html 1969-12-31 18:00:00.000000000 -0600 +++ mailadmin/docs/mailadmin Installation Notes.html 2003-12-24 16:21:03.000000000 -0600 @@ -0,0 +1,46 @@ + + + mailadmin Installation Notes + + + +

+

mailadmin Installation Notes

+

Prerequisities:

+ +

Installation:

+ +

Usage:

+ +

+

+ Note: The above steps and locations were pretty much specific to RedHat. Debian, for example, puts postgresql in slightly different locations. The actual values being worked with should still be valid. - 2003/12/24 +

+ + diff -urN --exclude=CVS mailadmin-1.5.1/edit/changepassword.php mailadmin/edit/changepassword.php --- mailadmin-1.5.1/edit/changepassword.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/edit/changepassword.php 2003-12-24 14:09:01.000000000 -0600 @@ -22,7 +22,7 @@ /* Testing operation, the form submits a request change an email account password. */ if ($submitted) { - system("../scripts/setpassword.pl ".$user." ".$pass1); + system("../scripts/setpassword.pl '".$user."' '".$pass1."' u"); if (strcmp($enable_dbase, "Yes") == 0) { $account = new account_information; @@ -49,12 +49,17 @@ Mail Server Administration - Change Password - +
@@ -72,7 +77,7 @@
Change Account Password

-
+ @@ -94,16 +99,24 @@ + +
+
+ +
+
+
- [Change] + [Change] [Reset]

+ diff -urN --exclude=CVS mailadmin-1.5.1/edit/getrights.php mailadmin/edit/getrights.php --- mailadmin-1.5.1/edit/getrights.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/edit/getrights.php 2003-12-24 15:35:55.000000000 -0600 @@ -20,7 +20,7 @@ $account = new account_information; $password = $account->get_password($username); - system("../scripts/setrights.pl ".$user." ".$username." ".$mail_server_name." ".$password); + system("../scripts/setrights.pl '".$user."' '".$username."' '".$mail_server_name."' '".$password."' '".$mail_server_seperator."'"); if (strcmp($enable_dbase, "Yes") == 0) { $transaction = new transaction_log; diff -urN --exclude=CVS mailadmin-1.5.1/edit/removequota.php mailadmin/edit/removequota.php --- mailadmin-1.5.1/edit/removequota.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/edit/removequota.php 2003-12-24 15:30:25.000000000 -0600 @@ -20,7 +20,7 @@ $account = new account_information; $password = $account->get_password($username); - system("../scripts/removequota.pl ".$user." ".$username." ".$mail_server_name." ".$password); + system("../scripts/removequota.pl '".$user."' '".$username."' '".$mail_server_name."' '".$password."' '".$mail_server_seperator."'"); if (strcmp($enable_dbase, "Yes") == 0) { $transaction = new transaction_log; diff -urN --exclude=CVS mailadmin-1.5.1/edit/setquota.php mailadmin/edit/setquota.php --- mailadmin-1.5.1/edit/setquota.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/edit/setquota.php 2003-12-24 15:28:40.000000000 -0600 @@ -22,7 +22,7 @@ /* Testing operation, the form submits a request change an email account password. */ if ($submitted) { - system("../scripts/setquota.pl ".$user." ".$username." ".$mail_server_name." ".$password." ".($newquota * 1024)); + system("../scripts/setquota.pl '".$user."' '".$username."' '".$mail_server_name."' '".$password."' '".($newquota * 1024)."' '".$mail_server_seperator."'"); if (strcmp($enable_dbase, "Yes") == 0) { $transaction = new transaction_log; @@ -42,12 +42,26 @@ Mail Server Administration - Set Quota - +
@@ -65,7 +79,7 @@
Change Account Quota

-
+ @@ -87,16 +101,24 @@ + +
+
+ +
+
+
- [Change] + [Change] [Reset]

+ diff -urN --exclude=CVS mailadmin-1.5.1/error/error_current.php mailadmin/error/error_current.php --- mailadmin-1.5.1/error/error_current.php 2001-07-03 21:17:40.000000000 -0500 +++ mailadmin/error/error_current.php 2003-05-28 13:53:09.000000000 -0500 @@ -11,7 +11,7 @@

We are sorry, but the password you entered was not correct and we could not complete the change, please - try again. + ">try again.

diff -urN --exclude=CVS mailadmin-1.5.1/expired_password.php mailadmin/expired_password.php --- mailadmin-1.5.1/expired_password.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/expired_password.php 2003-12-24 14:09:41.000000000 -0600 @@ -16,11 +16,12 @@ if ($submitted) { /* If the account can not connect, we can not verify the validity of the account or the password. */ if (!user_login($username, $current_password)) { + set_cookie("MAILADMIN_EXPIRED", 1); header("Location: error/error_current.php"); exit; } - system("./scripts/setpassword.pl ".$username." '".$newpassword1."'"); + system("./scripts/setpassword.pl '".$username."' '".$newpassword1."' u"); if (strcmp($enable_dbase, "Yes") == 0) { $account = new account_information; @@ -50,24 +51,30 @@ Mail Server Administration - Expired Password - +
@@ -88,7 +95,7 @@ -
+ @@ -106,14 +113,18 @@
-

- [Change] + + + + [Change] [Reset] +
+ diff -urN --exclude=CVS mailadmin-1.5.1/help/index.php mailadmin/help/index.php --- mailadmin-1.5.1/help/index.php 2001-07-03 20:57:39.000000000 -0500 +++ mailadmin/help/index.php 2003-05-28 13:52:17.000000000 -0500 @@ -30,17 +30,21 @@ Email Accounts. The interface has evolved into an easy to use simple to understand collection of features, some of the features of mailadmin are: