<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Configuration Wizard</title>
</head>
<body>
   <h1>PolluStop Configuration Wizard<br />
   <span class="h2">%%domainname%%</span></h1>
   <!--%%INCLUDE "i_statuscodes.incl"-->
   <form action="setup4" method="post">
   <fieldset><legend>Drop mailboxes</legend>
   <p class="explain"><b>Dropbox</b>: This learning method consists of shared mailboxes where the
   user can drop messages considered incorrectly filtered. PolluStop polls the mailbox every few seconds
   and will automatically retrieve any messages found there and update the database accordingly.</p>
   <p>Spam messages drop box: <input name="drop_spambox" value="%%settings.drop_spambox%%" type="text" size="20" /></p>
   <p>Good messages drop box: <input name="drop_goodbox" value="%%settings.drop_goodbox%%" type="text" size="20" /></p>

   <p class="explain">After scanning dropped messages, pollustop can either delete or move the message in another mailbox. Since the drop-boxes are emptied by PolluStop, an user moving his good message to drop-good will lose it. Users should be instructed to copy messages in the drop-box. Nevertheless, having PolluStop moving the dropped mail in another mailbox instead of deleting it will give you a way to give back the lost message to its owner:</p>
   <p><select name="drop_movespam" style="width:80px" onchange="drop_movespam_hide.style.visibility = this.selectedIndex > 0 ? 'visible' : 'hidden'"><!--%%BOOLMENU settings.drop_movespam DEFAULT defaultsettings.drop_movespam DISPLAY movedelete--></select> spam messages <span <!--%%IF NOT(settings.drop_movespam)-->style="visibility:hidden" <!--%%ENDIF-->id="drop_movespam_hide">in: <input type="text" name="drop_movespambox" value="%%SETTINGS("drop_movespambox")%%" size="20" /></span></p>
   <p><select name="drop_movegood" style="width:80px" onchange="drop_movegood_hide.style.visibility = this.selectedIndex > 0 ? 'visible' : 'hidden'"><!--%%BOOLMENU settings.drop_movegood DEFAULT defaultsettings.drop_movegood DISPLAY movedelete--></select> good messages <span <!--%%IF NOT(settings.drop_movegood)-->style="visibility:hidden" <!--%%ENDIF-->id="drop_movegood_hide">in: <input type="text" name="drop_movegoodbox" value="%%SETTINGS("drop_movegoodbox")%%" size="20" /></span></p>
   <script type="text/javascript">drop_movespam_hide = document.getElementById("drop_movespam_hide"); drop_movegood_hide = document.getElementById("drop_movegood_hide");</script>

   <fieldset><legend><input value="1" type="checkbox" name="w_denyselect" %%checked(settings.w_denyselect)%% /> Deny SELECT right on shared drop mailboxes</legend>
      <p class="explain">The drop folders are shared amongs all users. This gives the possibility
      to all users to see the contents of other user's dropped messages. However, since PolluStop empties the
      drop boxes every few seconds, the possibility of seeing other people's dropped messages is very low.
      To completely avoid this possibility, you can set the drop mailbox rights to INSERT only and deny the SELECT right.
      Unfortunately, there is an inconsistency in the Webmail module of Communigate Pro, and if you deny the SELECT right,
      Webmail users will not be able to use the Drop mailboxes. Select this option only if you don't have Webmail users.</p>
   </fieldset>

   <fieldset><legend><input value="1" type="checkbox" name="w_protectionlayer" %%checked(settings.w_protectionlayer)%% />
      Add a protection layer between users and the database</legend>
   <p class="explain">You can add an admin-managed layer between users and the real drop mailbox.
      The user drops incorrectly fitered mail into a mailbox shared by the postmaster; the postmaster
      then manually moves the mail from there to the real drop mailbox for training Pollustop.</p>
   </fieldset>

   <p class="explain">The wizard will create the drop mailboxes and aliases in all the accounts of the selected domains,
      and will setup appropriate mailbox subscriptions. It will also modify the account template of all selected domains to make
      Communigate Pro automatically create these aliases for new accounts.</p>
      <p><input value="1" type="radio" name="w_alldomains" %%checked(settings.w_alldomains)%% /> Create in ALL domains</p>
      <p><input value="0" type="radio" name="w_alldomains" %%checked(NOT(settings.w_alldomains))%% /> Create in these domains:</p><ul style="list-style:none; margin:0 0 0 20px; padding:0;"><!--%%FORALL dom IN domains-->
         <li><input type="checkbox" name="w_selecteddomains" %%CHECKED(CONTAINS(dom[] in settings.w_selecteddomains))%% value="%%dom[]%%" id="i%%dom[]%%" />
         <label for="i%%dom[]%%"><!--%%IF EQUALS(dom[] AND domainname)--><b><!--%%ENDIF-->%%dom[]%%<!--%%IF EQUALS(dom[] AND domainname)--></b><!--%%ENDIF--></label></li><!--%%ENDFOR dom-->
      </ul>
      <p class="errors">The creation of aliases and subscriptions may take a while, up to a few minutes if you have a lot of accounts.
      If you get a connection timeout on your browser, please navigate manually to the next step of the wizard (setup5).
      The creation process will continue in the background.</p>

      <p><input type="submit" class="btn" name="Apply" value="Create Drop Boxes" />  <input type="submit" class="btn" name="skip" value="Skip this step" /></p>
   </fieldset></form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
