||header: modified=false tpl_set=cwm_o1 tpl_version=2.7m||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>

<script language="JavaScript">
<!---
function do_copy(sel){
 var i;
 for (i=0; i<sel.options.length; i++)
   if (sel.options[i].selected==true)
     document.managerform.uset.value
      = sel.options[i].text;
}
function DoStart(){
document.managerform.pass.value="";
document.managerform.pass.focus();
}

// -->
</script>


<title>CWMail Management</title>
</head>

<body onLoad="DoStart()" background="||nwimg||/cwback.jpg">

<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td align="right" valign="top" width="15%"><img
        src="||nwimg||/cwmail.gif" width="104" height="37"></td>
        <td valign="top" width="5%">&nbsp;</td>
        <td align="center" valign="top" width="60%"><font
        color="#FF0000" size="6">CWMail Management </font></td>
        <td width="5%">&nbsp;</td>
        <td valign="top" width="15%"><img src="||nwimg||/dmailweb.gif"
        width="97" height="37"></td>
    </tr>
</table>

<p>This form allows you to modify user settings for a wild card
selection of users by modifying the values stored in
their users.dat files. These files store settings for a variety
of options from disk quotas to default reply addresses. The
user.dat files are simple text files and can also be edited
directly with any text editor.</p>

<form action="||b_action||" method="post" name="managerform">
    <input type="hidden" name="cmd" value="domanager">
    <input type="hidden" name="tcode" value="||tcode||">

 <table><tr><td>
    <strong>Manager Password: </strong><input type="password"
    size="20" name="pass">

    <td><table border="1"><tr><td>||info_msg|| </td>
    </tr></table>

    <td><input type="submit" name="domange" value="Do it"  >
</table>
    <table border="3" cellpadding="3" cellspacing="3"
    width="100%">
        <tr>
            <th align="left" width="30%">Apply to users matching:</th>
            <th align="left" width="40%">Setting to Change:</th>
            <th align="left" width="30%">New Value</th></tr>
        <tr>
         <td width="33%"><input type="text" name="uwild" size="10" value="||uwild||" ></td>
         <td width="33%"><input type="text" name="uset" size="20" value="||uset||" ><select size="1" name="uset1" onchange="do_copy(this)">
||include||user_opt.dat||
</select></td>
         <td width="33%"><input type="text" name="uval" size="10" value="||uval||" ></td></tr>
    </table>
    <table><tr>
      <td><input type="checkbox" name="uadd" value="on" ||uadd||>Add a line for users with no curent matching setting
      <tr>
      <td><input type="checkbox" name="ub_only" value="on" ||ub_only||>Only modify for users where current setting is blank
      <tr>
      <td><input type="checkbox" name="upurge" value="on" ||upurge||>Purge cache for timed out users and delete accounts unused for <input type="input" size="4" name="ukill_days" value="||ukill_days||"> days. (0 means keep all accounts)
    </tr></table>

Delete <em>All Files</em> for CWMail users mathching: 
<input type="text" name="dwild" size="10" value="" >
<input type="submit" name="mcmd" size="10" value="Delete Accounts" >
Use with care!   
</form>

||ifdef||register||
<p>If you are the system administrator of this site and you wish
to register this copy of CWMail then you should click here ||register|| to enter order details.</p>
||endif||

<h3>Results:</h3>
<table border="3" cellpadding="3" cellspacing="3">
<tr><td> Number of users<td><td>||nusers||
<tr><td> Matching users<td><td>||nmatches||
<tr><td> Lines modified<td><td>||nmodified||
<tr><td> Files added to<td><td>||nadded||
<tr><td> Last purge<td><td>||last_purge||
<tr><td> Messages served<td><td>||msgs_served||
<tr><td> Messages diskuse<td><td>||msgs_diskuse||
</table>

<h3>Notes:</h3>

<ul>
    <li>Most of the fields above are "sticky" between sessions ie. they are stored in manager.dat in your main work or template directory and will return next time you use the manager page.</li>
    <li>By default the update will only affect user.dat files
        which match both the user wildcard and the setting to
        change fields. To ensure that the setting will also be
        added to user.dat for any matching users who dont have a
        current value tick the &quot;add line for ...&quot; box.</li>
    <li>The matching users field is matched against the users login name and pop host address
        For example for a user RPugmire who
        collects his email from netwinsite.com the name
        would be RPugmire@netwinsite.com 
        so this would be matched by a wildcard * or RPugmire* or
        *@netwinsite.com but not by RPugmire or netwinsite.com</li>
    <li>The lines modified field records the number of lines that
        were found and modified in user.dat files.</li>
    <li>The files added to field records the number of user.dat
        files which had a new setting line added to them.</li>
    <li>Take care when changeing settings which could match
        several different setting lines. For example there is a
        setting line for each user folder. So if a user had six
        folders defined he would have setting lines; folder 0...
        through to folder 5... Therfore using a setting wildcard
        of just folder rather than folder n could overwrite all
        six names!</li>
    <li>The &quot;Setting to change&quot; field may contain
        spaces. For example to change the name of the &quot;New
        Mail&quot; folder to Inbox you would use:<table
        border="3" cellpadding="3" cellspacing="3" width="80%">
            <tr>
                <td width="33%">*</td>
                <td width="33%">folder 0</td>
                <td width="34%">Inbox</td>
            </tr>
        </table>
    </li>
    <li>To remove a user.dat setting for the selected users leave
        the new value field blank and dont set the &quot;add line
        for ...&quot; box.</li>
    <li>The number of users is stored in manager.dat. It is only
        updated when a full wild card update is performed. To do
        this without changing any user settings just use a non
        existent user setting and * for the matching users field,
        and dont click the &quot;add a line for users with no
        matching entry&quot;.</li>
    <li>Purge cache for timed out users: This tick box allows you
        to initiate a manual purge of cached messages. For user
        POP accounts which are not set to &quot;delete after
        download&quot; CWMail/DMailWeb keeps a temporary cache of
        &quot;New Mail&quot; messages on the server while a user
        is &quot;logged in&quot;. This cache is deleted when the
        user logs out. However, users may not allways log out
        from CWMail/DMailWeb thus leaving files on your server.
        Ticking this box and then clicking the Do it button will
        purge these caches for users who are logged in but have
        not performed any actions for auto_logout_mins. This is a
        ini file setting with a default value of 60 mins. You can
        also get the cgi to perform automatic purges at intervals
        by putting a purge_mins setting in the ini file. The
        last_purge field shows you when the last purge of cached
        messages was performed.</li>
    <li>Messages served and message diskused are only calculated when a purge is done 
and are the totals for the users who matched the users wildcard. Messages served 
is total of messages read from pop server for each user.</li>
    <li>When deleting user accounts you can either enter a wildcard 
(like test*@* or *@pop.host.one) or @filename. 
If no path is given it will look in the template directory for the path. 
The file should contain one line per user to be deleted. 
The entry for each user to be deleted must be of the form: username@pop.host.name. 
For each matching user or user in the file it will delete the complete cwmail work directory for that user, including all messages and setting files. Note: There is no undo for this command so use with care!</li>
</ul>

<p>||copyright||</p>
</body>
</html>


































































||checksum=1594405||
