<!--%%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="setup2" method="post">
   <fieldset><legend>Domain Rules</legend>
   <p class="explain">Once a message passes through PolluStop, it gets a new set of headers containing
      the score and diagnostics about its Spam content. Communigate Pro can use these headers to place
      the message in an appropriate mailbox for the user (useful for IMAP and Webmail users). For POP
      users, PolluStop can add a prefix to the subject of suspected Spam to allow users to perform
      client-side filtering, or for quick visual identification.</p>
   <p>To enable Subject Line modification, see the <a href="general">General settings</a> page.</p>
   <p class="explain">The rule to make CGPro place the message in the correct mailbox is simple. CGPro checks
   for a specific header, and if the header is found, the message is copied to the specified mailbox, and
   the original is discarded.</p>
   <fieldset><legend><input value="1" type="checkbox" name="w_allowoverride" %%checked(settings.w_allowoverride)%% /> Allow users to bypass the rule</legend>
   <p class="explain">The rule can be set to allow users to create individual rules that bypass it. Selecting this
   option will set the rule priority to make Communigate Pro execute account rules before the created rule.
   This setting is recommended.</p>
   </fieldset>

   <fieldset><legend>Spam mailbox name: <input name="w_junkmbxname" value="%%settings.w_junkmbxname%%" type="text" size="20" /></legend>
   <p class="explain">The wizard will create both the rule and the Spam mailbox in every account of the selected domains.
   It will also modify the account template of each selected domain to make Communigate Pro automatically
   create the Spam mailbox for all new accounts.</p>
   </fieldset>

   <fieldset><legend><input value="1" type="checkbox" name="w_markread" %%checked(settings.w_markread)%% /> Mark junk mail as read</legend>
   <p class="explain">The CGP rule can mark junk mail as read prior to putting it in the Junk Mail folder. Since most mail clients show
   a visual indicator on mailboxes with unread messages, this setting will remove the annoyance of having a Junk Mail mailbox
   that shows unread messages.</p>
   </fieldset>

   <p class="errors">Warning: If you already manually created this rule in some domains, the rule MUST be named "PolluStop"
   for this wizard to modify it. If the name is not "PolluStop", the wizard will create a new rule.</p>
   <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 rules 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 (setup3).
   The creation process will continue in the background.</p>

   <p><input type="submit" class="btn" name="Apply" value="Create the mailbox and the rule" /> <input type="submit" class="btn" name="Skip" value="Skip this step" /></p>
</fieldset></form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
