<!--%%INCLUDE "i_defaulthead.incl" ("PolluStop Drop mailboxes")-->
   <form action="drop" method="post" <!--%%IF NOT(requestsecure)-->onsubmit="doSubmit();"<!--%%ENDIF-->>
   <fieldset><legend><select name="drop_enabled"><!--%%BOOLMENU settings.drop_enabled DEFAULT defaultsettings.drop_enabled DISPLAY yesno--></select> Enable Drop Mailboxes</legend>
   <p class="explain">Drop mailboxes are special mailboxes where users can drop incorrectly-filtered messages instead of forwarding them; this is probably the easiest method for IMAP users. The requirements can be automatically created by the <a href="/setup4">wizard</a>.</p>
   <p class="explain">Your entries will be verified before being saved (PolluStop will attempt an IMAP connection).</p>
   <p>The drop mailboxes are in <select style="width:auto" onchange="var dia = document.getElementsByName('drop_imapaccount')[0]; dia.style.visibility = this.selectedIndex > 0 ? 'visible' : 'hidden'; if (!this.selectedIndex) dia.value='';">
      <option <!--%%IF EQUALS(SETTINGS("drop_imapaccount") AND "")-->selected="selected"<!--%%ENDIF-->>the Master account</option>
      <option <!--%%IF NOT(EQUALS(SETTINGS("drop_imapaccount") AND ""))-->selected="selected"<!--%%ENDIF-->>this account:</option>
      </select><input <!--%%IF EQUALS(SETTINGS("drop_imapaccount") AND "")-->style="visibility:hidden"<!--%%ENDIF--> type="text" name="drop_imapaccount" value="%%HTML:SETTINGS("drop_imapaccount")%%" size="40" /></span>
   </p>
   </fieldset>

   <fieldset><legend>Mailboxes to scan for messages</legend>
   <p>Spam messages are in: <input type="text" name="drop_spambox" value="%%HTML:SETTINGS("drop_spambox")%%" size="20" /></p>
   <p>Good messages are in: <input type="text" name="drop_goodbox" value="%%HTML:SETTINGS("drop_goodbox")%%" size="20" /></p>
   <p class="explain">PolluStop uses IMAP to fetch the messages. Then, it can either delete the dropped message or store it in a separate folder.</p>
   <p>After scanning dropped messages:</p>
   <p><select name="drop_movespam" style="width:80px" onchange="dmsh.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="%%HTML:SETTINGS("drop_movespambox")%%" size="20" /></span></p>
   <p><select name="drop_movegood" style="width:80px" onchange="dmgh.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="%%HTML:SETTINGS("drop_movegoodbox")%%" size="20" /></span></p>
   <script type="text/javascript">dmsh = document.getElementById("drop_movespam_hide"); dmgh = document.getElementById("drop_movegood_hide");</script>
   </fieldset>

   <fieldset><legend>IMAP Access</legend>
      <p class="explain">PolluStop will access the IMAP drop mailboxes using the master username (%%username%%) and password.</p>
      <table cellspacing="0">
         <tr><th>Access IP:</th><td><input type="text" name="drop_ip" value="%%HTML:SETTINGS("drop_ip")%%" size="15" maxlength="15" /> <span class="explain">(usually 127.0.0.1)</span></td></tr>
         <tr><th>Access Port:</th><td><input type="text" name="drop_imapport" value="%%HTML:SETTINGS("drop_imapport")%%" size="5" maxlength="5" /> <span class="explain">(usually 143)</span></td></tr>
      </table>
   </fieldset>

   <fieldset><legend><select name="drop_helper_enabled"><!--%%BOOLMENU settings.drop_helper_enabled DEFAULT defaultsettings.drop_helper_enabled DISPLAY yesno--></select> Enable PolluStop-Drop helper</legend>
      <p class="explain">PolluStop-Drop is an IMAP helper which can help secure the shared drop boxes by moving mail more quickly from them.</p>
      <p class="explain">With a normal setup, PolluStop will learn from the Drop box content and remove messages. This happens quickly, but in some setups this may not happen quickly enough.</p>
      <p class="explain">With PolluStop-Drop, the helper is dedicated to move the messages away from the drop boxes and put them in a secure location as quickly as possible. PolluStop will then read messages from the secure location, and delete (or backup) them.
      The helper being a lot simpler than PolluStop, it is even more reliable than PolluStop is, and will continue moving away messages even if PolluStop is prevented to process them for any reason.</p>
      <p class="explain">First, configure the PolluStop-Drop helper in Communigate. A simple helper entry will be enough, it does not require any server rule. Then, create the private message folders in the account specified at the top of this configuration page, and input their relative path here. Finally, enable the feature.</p>
      <table cellspacing="0">
         <tr><th>Private spam messages folder:</th><td><input type="text" name="drop_scanspambox" value="%%HTML:SETTINGS("drop_scanspambox")%%" size="20" /></td></tr>
         <tr><th>Private good messages folder:</th><td><input type="text" name="drop_scangoodbox" value="%%HTML:SETTINGS("drop_scangoodbox")%%" size="20" /></td></tr>
      </table>

   </fieldset>

   <p><input type="submit" name="apply" value="Save settings" />
   </p>
   </form>
   </script>
<!--%%INCLUDE "i_defaultfoot.incl"-->
