<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop - User Configuration</title>
</head>
<body onload="PrepareLists()">
   <h1>PolluStop - User Configuration for %%fullaccountname%%</h1>

   <!--%%INCLUDE "i_statuscodes.incl"-->

   <form action="" method="post" onsubmit="UpdateLists()">

   <!--%%IF settings.w_allowoverride & settings.usecli-->
   <fieldset><legend>Spam filter</legend>
      <p>I <select onchange="document.getElementById('spam_options').style.display=this.selectedIndex?'none':''" style="width:auto;" class="ed" name="ruledisabled"><option <!--%%IF NOT(user.ruledisabled)--> selected="selected"<!--%%ENDIF--> value="0">%%DICTIONARY("wantdontwant")."YES"%%</option><option<!--%%IF user.ruledisabled--> selected="selected"<!--%%ENDIF--> value="1">%%DICTIONARY("wantdontwant")."NO"%%</option>
         </select> the messages I receive to be filtered for spam</p>
      <p class="explain">Note: When spam filtering is disabled, messages considered as spam will not be placed automatically in a Junk Mail mailbox, but these messages will still contain the spam filter headers.</p>
   </fieldset>
   <!--%%ENDIF-->

   <div id="spam_options" <!--%%IF settings.w_allowoverride & settings.usecli & user.ruledisabled-->style="display:none"<!--%%ENDIF-->>
   <fieldset><legend>Automated listing</legend>
      <p>When I send a message, I <select style="width:auto;" class="ed" name="whitelistsent"><!--%%BOOLMENU user.whitelistsent DISPLAY wantdontwant--></select> the recipient to be automatically whitelisted</p>
      <p>When I drop a message in my "good" drop-box, I <select style="width:auto;" class="ed" name="whitelistdrop"><!--%%BOOLMENU user.whitelistdrop DISPLAY wantdontwant--></select> the sender to be automatically whitelisted</p>
      <p>When I drop a message in my "spam" drop-box, I <select style="width:auto;" class="ed" name="blacklistdrop"><!--%%BOOLMENU user.blacklistdrop DISPLAY wantdontwant--></select> the sender to be automatically blacklisted</p>
      <p class="explain">If you don't have access to a drop-box or don't know what a drop-box is, you can forward the message as attachement to <i>%%SETTINGS("learn_prefix")%%@%%domainname%%</i>.</p>
   </fieldset>

   <fieldset><legend>Lists</legend>
      <p class="explain">
         You can enter email addresses or domains in the fields below. Always enter full email addresses (for instance, <span class="tt">myfriend@somedomain.com</span>) or full domains (<span class="tt">somedomain.com</span>).
      </p>
      <p class="explain">To help you find entries in the box, you can change the sort order:</p>
      <p>Sort By: <select style="width:auto;" name="sortorder" onchange="SortBoxes(this.selectedIndex)">
            <option>Domains First, Accounts By Domain</option>
            <option>Domains First, Accounts by Username</option>
            <option>Mixed, by Domain</option>
            <option>Mixed, Alphabetically</option>
         </select>
         <input type="checkbox" onclick="SortBoxes()" id="rev" name="rev" value="0" /><label for="rev">Reverse</label>
         <input type="checkbox" checked="checked" onclick="SortBoxes()" id="dom" name="dom" /><label for="dom">Aligned on Domain</label></p>


   <fieldset><legend>Whitelisted addresses and domains</legend>
      <div id="obj_whitelistholder" style="display:none">
         <p class="explain">Any incoming mail for which the sender matches an entry below will never be considered as spam.</p>
         <p class="explain">Existing whitelist entries. Click to delete/undelete.</p>
         <div class="list" style="overflow:hidden; height:auto; font-weight:bold;"><table cellspacing="0"><col width="220"><col width="220"><col width="210"><tbody><tr>
            <td class="link" style="font-size:small;" onclick="FillList(1, SortByAccount)">Address</td>
            <td class="link" style="font-size:small;" onclick="FillList(1, SortByDomain)">Domain</td>
            <td>Type/Comment</td>
         </tr></tbody></table></div>
         <div class="list" id="obj_whitelist"></div>
      <p class="link" onclick="MoveExisting(1); this.style.display='none'">Move all existing entries to the New entries box</p>
      </div>
      <p style="margin-top:10px" class="explain">Whitelist entries. Enter one full email address, one full List-ID or one full domain name per line. No wildcard (all characters are taken literally).</p>
      <p class="explain">Format: "[address@]domain [ ; comment]"</p>
      <textarea name="whitelist" rows="15" cols="70">%%whitelist%%</textarea>
      <p class="error">Local addresses will not be saved</p>
   </fieldset>
   <fieldset><legend>Blacklisted addresses and domains</legend>
      <div id="obj_blacklistholder" style="display:none">
         <p class="explain">Any incoming mail for which the sender matches an entry below (and does not match a whitelist entry) will always be considered as spam.</p>
         <p class="explain">Existing blacklist entries. Click to delete/undelete.</p>
         <div class="list" style="overflow:hidden; height:auto; font-weight:bold;"><table cellspacing="0"><col width="220"><col width="220"><col width="210"><tbody><tr>
            <td class="link" style="font-size:small;" onclick="FillList(0, SortByAccount)">Address</td>
            <td class="link" style="font-size:small;" onclick="FillList(0, SortByDomain)">Domain</td>
            <td>Type/Comment</td>
         </tr></tbody></table></div>
         <div class="list" id="obj_blacklist"></div>
         <p class="link" onclick="MoveExisting(0); this.style.display='none'">Move all existing entries to the New entries box</p>
      </div>
      <p style="margin-top:10px" class="explain">Blacklist entries. Enter one full email address, one full List-ID or one full domain name per line. No wildcard (all characters are taken literally).</p>
      <p class="explain">Format: "[address@]domain [ ; comment]"</p>
      <textarea name="blacklist" rows="15" cols="70">%%blacklist%%</textarea>
      <p class="error">Local addresses will not be saved</p>
   </fieldset>
   </fieldset>
   </div>
   <p><input type="submit" class="btn" name="Apply" value="Save settings" /> <!--%%IF NOT(webuser)--><input type="button" class="btn" value="Logout" onclick="window.location='../logout'" /><!--%%ENDIF--></p>
   </form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
</body>