| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 6 | {* This program is free software; you can redistribute it and/or modify *} |
| 7 | {* it under the terms of the GNU General Public License as published by *} |
| 8 | {* the Free Software Foundation; either version 2 of the License, or *} |
| 9 | {* (at your option) any later version. *} |
| 10 | {* *} |
| 11 | {* This program is distributed in the hope that it will be useful, *} |
| 12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
| 13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
| 14 | {* GNU General Public License for more details. *} |
| 15 | {* *} |
| 16 | {* You should have received a copy of the GNU General Public License *} |
| 17 | {* along with this program; if not, write to the Free Software *} |
| 18 | {* Foundation, Inc., *} |
| 19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | |
| 24 | <h1>Regexps pour les détections de bounces</h1> |
| 25 | |
| 26 | <p> |
| 27 | Rappel sur les niveaux : |
| 28 | </p> |
| 29 | <ul> |
| 30 | <li>0: IGNORE == ignorer le bounce</li> |
| 31 | <li>1: NOTICE == forwarder le bounce (typiquement vacation)</li> |
| 32 | <li>2: ERREUR == erreur</li> |
| 33 | </ul> |
| 34 | |
| 35 | |
| 36 | <form action="admin/postfix/regexp_bounces" method="post"> |
| 37 | <table class="bicol" cellpadding='0' cellspacing='0'> |
| 38 | <tr> |
| 39 | <th>Position/Niveau</th> |
| 40 | <th>Regexp/Raison</th> |
| 41 | </tr> |
| 42 | {if $new} |
| 43 | <tr class="impair"> |
| 44 | <td> |
| 45 | <input type='text' name='pos[NULL]' value='' size='4' maxlength='4' /> |
| 46 | </td> |
| 47 | <td> |
| 48 | <input type="text" size="82" name='re[NULL]' value="{$re.re}" /> |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr class="impair"> |
| 52 | <td style="white-space: nowrap"> |
| 53 | <input type='radio' name='lvl[NULL]' value='0' {if $re.lvl eq 0}checked="checked"{/if} /> |
| 54 | <input type='radio' name='lvl[NULL]' value='1' {if $re.lvl eq 1}checked="checked"{/if} /> |
| 55 | <input type='radio' name='lvl[NULL]' value='2' {if $re.lvl eq 2}checked="checked"{/if} /> |
| 56 | </td> |
| 57 | <td> |
| 58 | <input type="text" size="32" name='text[NULL]' value="{$re.text}" /> |
| 59 | </td> |
| 60 | </tr> |
| 61 | {else} |
| 62 | <tr class="impair"> |
| 63 | <td colspan="2" class="right action"> |
| 64 | <a href="admin/postfix/regexp_bounces/new">nouveau</a> |
| 65 | </td> |
| 66 | </tr> |
| 67 | {/if} |
| 68 | {iterate from=$bre item=re} |
| 69 | <tr class="{cycle values="pair,pair,impair,impair"}"> |
| 70 | <td> |
| 71 | <input type='text' name='pos[{$re.id}]' value='{$re.pos}' size='4' maxlength='4' /> |
| 72 | </td> |
| 73 | <td> |
| 74 | <input type="text" size="82" name='re[{$re.id}]' value="{$re.re}" /> |
| 75 | </td> |
| 76 | </tr> |
| 77 | <tr class="{cycle values="pair,pair,impair,impair"}"> |
| 78 | <td style="white-space: nowrap"> |
| 79 | <input type='radio' name='lvl[{$re.id}]' value='0' {if $re.lvl eq 0}checked="checked"{/if} /> |
| 80 | <input type='radio' name='lvl[{$re.id}]' value='1' {if $re.lvl eq 1}checked="checked"{/if} /> |
| 81 | <input type='radio' name='lvl[{$re.id}]' value='2' {if $re.lvl eq 2}checked="checked"{/if} /> |
| 82 | </td> |
| 83 | <td> |
| 84 | <input type="text" size="32" name='text[{$re.id}]' value="{$re.text}" /><br /> |
| 85 | </td> |
| 86 | </tr> |
| 87 | {/iterate} |
| 88 | <tr class="{cycle values="pair,impair"}"> |
| 89 | <td colspan="2" class="center"> |
| 90 | <input type="submit" value="valider" name="submit" /> |
| 91 | </td> |
| 92 | </tr> |
| 93 | </table> |
| 94 | </form> |
| 95 | |
| 96 | |
| 97 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |