On Monday 28 July 2003 08:54 am, Paul Theodoropoulos wrote:
> i could definitely get behind that. i don't have the time to field all of
> the support email i'll get if i upgrade to the newest qmailadmin and have
> to explain ten dozen times why 'aliases' are "gone".

I was thinking the same thing.  But instead of a big patch to the qmailadmin 
code, i figured it would be just as easy to modify the templates to make it 
seem more clear that aliases aren't *gone*, but just now combined with 
forwards.

Attached is my patch to 3 files in qmailadmin's html/ directory (thus no 
recompiling required).  It adds the old 'alias" dropdown to the 'add new 
forward' and 'modify forward' pages and uses javascript to fill the text box 
based on what the user selects (the dropdown has no name=, so it won't be 
submitted with the form).

This may be better done by patching the C code so that both are submitted and 
one takes precedence over the other, but, whatever.

The users who don't have javascript enabled will complain about the dropdown 
not working.  You should complain back about how dumb it is to not have 
javascript enabled in this day and age.

I also changed a bunch of the lines in 'en' to say Forward/Alias instead of 
just Forward.

-- 
HOSTBABY.COM - web hosting for musicians
Ryan O'Neill - [EMAIL PROTECTED]
http://www.hostbaby.com
diff -ru1 html-orig/add_forward.html html/add_forward.html
--- html-orig/add_forward.html  Fri Jun 27 16:41:42 2003
+++ html/add_forward.html       Thu Jul 31 16:58:11 2003
@@ -39,3 +39,5 @@
              <td>
-              <input type="text" size="48" name="newu" maxlength="128"><br>##X010
+              <input type="text" size="48" name="newu" maxlength="128"><br>
+              <select 
onchange="document.addforward.newu.value=this.value+'@##D'"><option 
value=""></option>##O</select><br>
+              ##X010
              </td>
diff -ru1 html-orig/en html/en
--- html-orig/en        Tue Jul 22 09:51:28 2003
+++ html/en     Thu Jul 31 16:57:31 2003
@@ -7,6 +7,6 @@
 006 Subject: 
-007 Add Forward Account:
+007 Add Forward/Alias Account:
 008 Forward Email Address: 
 009 Local Name:
-010 (Account name to forward to<br>OR<br>full email address if forwarding to another 
domain)
+010 (Account name to alias to<br>OR<br>full email address if forwarding to another 
domain)
 011 Add List Moderator
@@ -41,5 +41,5 @@
 073 Add New Alias
-074 Forward Accounts
+074 Forward/Alias Accounts
 075 Forward
-076 Add New Forward 
+076 Add New Forward/Alias
 077 Mail Robots
@@ -75,3 +75,3 @@
 107 Contents
-108 Add forward
+108 Add forward/alias
 109 Modify User
@@ -89,3 +89,3 @@
 121 Aliases
-122 Forwards
+122 Forwards/Aliases
 123 Show redirect
@@ -94,3 +94,3 @@
 126 New Alias
-127 New Forward
+127 New Forward/Alias
 128 New Mail Robot
diff -ru1 html-orig/mod_dotqmail.html html/mod_dotqmail.html
--- html-orig/mod_dotqmail.html Fri Jun 27 16:41:50 2003
+++ html/mod_dotqmail.html      Thu Jul 31 16:59:26 2003
@@ -30,3 +30,3 @@
         <!-- Form fields -->
-        <form method="post" name="moddotqmail" action="##C/com/moddotqmailnow">
+        <form method="post" name="addforward" action="##C/com/moddotqmailnow">
         <tr>
@@ -37,3 +37,5 @@
            <b>##X305</b><br>
-           <input type="text" size="48" name="newu" maxlength="128"><br>##X010
+           <input type="text" size="48" name="newu" maxlength="128"><br>
+           <select 
onchange="document.addforward.newu.value=this.value+'@##D'"><option 
value=""></option>##O</select><br>
+           ##X010
          </td>

Reply via email to