| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2007 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 | {if $retour == $smarty.const.ERROR_INACTIVE_REDIRECTION} |
| 24 | <p class="erreur"> |
| 25 | Tu ne peux pas avoir aucune adresse de redirection active, sinon ton adresse |
| 26 | {$smarty.session.forlife}@{#globals.mail.domain#} ne fonctionnerait plus. |
| 27 | </p> |
| 28 | {/if} |
| 29 | {if $retour == $smarty.const.ERROR_INVALID_EMAIL} |
| 30 | <p class="erreur"> |
| 31 | Erreur: l'email n'est pas valide. |
| 32 | </p> |
| 33 | {/if} |
| 34 | {if $retour == $smarty.const.ERROR_LOOP_EMAIL} |
| 35 | <p class="erreur"> |
| 36 | Erreur: {$smarty.session.forlife}@{#globals.mail.domain#} ne doit pas être renvoyé |
| 37 | vers lui-même, ni vers son équivalent en {#globals.mail.domain2#} ni vers polytechnique.edu. |
| 38 | </p> |
| 39 | {/if} |
| 40 | <h1> |
| 41 | Tes adresses de redirection |
| 42 | </h1> |
| 43 | <p> |
| 44 | Tu configures ici les adresses emails vers lesquelles tes adresses (listées ci-dessous) sont dirigées : |
| 45 | </p> |
| 46 | <ul> |
| 47 | {if $melix} |
| 48 | <li> |
| 49 | <strong>{$melix}@{#globals.mail.alias_dom#}</strong>, |
| 50 | <strong>{$melix}@{#globals.mail.alias_dom2#}</strong> |
| 51 | </li> |
| 52 | {/if} |
| 53 | {foreach from=$alias item=a} |
| 54 | <li> |
| 55 | <strong>{$a.alias}@{#globals.mail.domain#}</strong> |
| 56 | {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if} |
| 57 | </li> |
| 58 | {/foreach} |
| 59 | </ul> |
| 60 | <p> |
| 61 | Le routage est en place pour les adresses dont la case "<strong>Actif</strong>" est cochée. |
| 62 | Si tu modifies souvent ton routage, tu as tout intérêt à rentrer toutes les |
| 63 | adresses qui sont susceptibles de recevoir ton routage, de sorte qu'en |
| 64 | jouant avec les cases "<strong>Actif</strong>" tu pourras facilement mettre en place les unes |
| 65 | ou bien les autres. |
| 66 | </p> |
| 67 | <p> |
| 68 | Enfin, la <strong>réécriture</strong> consiste à substituer à ton adresse email habituelle |
| 69 | (adresse wanadoo, yahoo, free, ou autre) ton adresse {#globals.mail.domain#} ou |
| 70 | {#globals.mail.domain2#} dans l'adresse d'expédition de tes messages, lorsque le courrier |
| 71 | passe par nos serveurs. Ceci arrive lorsque tu écris à un camarade sur son adresse {#globals.mail.domain#} ou |
| 72 | {#globals.mail.domain2#}, ou lorsque tu utilises notre |
| 73 | <a href="Xorg/SMTPS%E9curis%E9">service d'envoi de courrier SMTP sécurisé</a>. |
| 74 | </p> |
| 75 | |
| 76 | <script type="text/javascript" src="javascript/ajax.js"></script> |
| 77 | <script type="text/javascript">//<![CDATA[ |
| 78 | {literal} |
| 79 | function redirectUpdate() |
| 80 | { |
| 81 | showTempMessage('redirect-msg', "Tes redirections ont été mise à jour.", true); |
| 82 | } |
| 83 | {/literal} |
| 84 | //]]></script> |
| 85 | <div id="redirect-msg" style="position:absolute;"></div><br /> |
| 86 | <div class="center"> |
| 87 | <table class="bicol" summary="Adresses de redirection"> |
| 88 | <tr> |
| 89 | <th>Email</th> |
| 90 | <th>Actif</th> |
| 91 | <th>Réécriture</th> |
| 92 | <th> </th> |
| 93 | </tr> |
| 94 | {foreach from=$emails item=e name=redirect} |
| 95 | <tr class="{cycle values="pair,impair"}"> |
| 96 | <td> |
| 97 | <strong> |
| 98 | {if $e->broken}<span class="erreur">{assign var="erreur" value="1"}{/if} |
| 99 | {if $e->panne neq '0000-00-00'}{assign var="panne" value="1"}{icon name=error title="En panne"}{/if} |
| 100 | {$e->email} |
| 101 | {if $e->broken}</span>{/if} |
| 102 | </strong> |
| 103 | </td> |
| 104 | <td> |
| 105 | <input type="checkbox" value="{$e->email}" |
| 106 | {if $e->active}checked="checked"{/if} |
| 107 | {if $smarty.foreach.redirect.total eq 1}disabled="disabled"{/if} |
| 108 | onchange="Ajax.update_html(null,'{$globals->baseurl}/emails/redirect/'+(this.checked?'':'in')+'active/{$e->email}', redirectUpdate)" /></td> |
| 109 | <td> |
| 110 | <select onchange="Ajax.update_html(null,'{$globals->baseurl}/emails/redirect/rewrite/{$e->email}/'+this.value, redirectUpdate)"> |
| 111 | <option value=''>--- aucune ---</option> |
| 112 | {foreach from=$alias item=a} |
| 113 | <option {if $e->rewrite eq "`$a.alias`@polytechnique.org"}selected='selected'{/if} |
| 114 | value='{$a.alias}@polytechnique.org'>{$a.alias}@polytechnique.org</option> |
| 115 | <option {if $e->rewrite eq "`$a.alias`@m4x.org"}selected='selected'{/if} |
| 116 | value='{$a.alias}@m4x.org'>{$a.alias}@m4x.org</option> |
| 117 | {/foreach} |
| 118 | </select> |
| 119 | </td> |
| 120 | <td><a href="emails/redirect/remove/{$e->email}">{icon name=bin_empty title="retirer"}</a></td> |
| 121 | </tr> |
| 122 | {/foreach} |
| 123 | <tr class="{cycle values="pair,impair"}"><td colspan="4"> |
| 124 | <form action="emails/redirect" method="post"> |
| 125 | <div> |
| 126 | <br /> |
| 127 | Ajouter une adresse email : |
| 128 | <input type="text" size="35" maxlength="60" name="email" value="" /> |
| 129 | <input type="submit" value="ajouter" name="emailop" /> |
| 130 | </div> |
| 131 | </form> |
| 132 | </td></tr> |
| 133 | </table> |
| 134 | </div> |
| 135 | {if $panne} |
| 136 | <p class="smaller"> |
| 137 | <strong> |
| 138 | {icon name=error title="En panne"} |
| 139 | <a href="Xorg/Pannes">Panne :</a> |
| 140 | </strong> |
| 141 | Les adresses marquées de cette icône sont des adresses de redirection pour lesquelles une panne |
| 142 | a été détectée. Si le problème persiste, la redirection vers ces adresses sera désactivée. |
| 143 | </p> |
| 144 | {/if} |
| 145 | {if $erreur} |
| 146 | <p class="smaller"> |
| 147 | <strong> |
| 148 | {icon name=error title="En panne"} |
| 149 | <a href="Xorg/Pannes" style="color: #f00">Panne durable :</a> |
| 150 | </strong> |
| 151 | Les adresses en rouge sont des adresses qui ont été désactivées en raison d'un grand nombre de pannes. Si tu penses que |
| 152 | le problème est résolu, tu peux les réactiver, mais l'adresse sera redésactivée si les problèmes persistent. |
| 153 | </p> |
| 154 | {/if} |
| 155 | |
| 156 | {if $eleve} |
| 157 | <h1>Pour les Élèves (non encore diplômés)</h1> |
| 158 | <p> |
| 159 | L'X te fournit aussi une adresse à vie en <strong>«prenom.nom»@polytechnique.edu</strong> qui par défaut est |
| 160 | une redirection vers «login»@poly.polytechnique.fr. <a href="https://www.mail.polytechnique.edu/"> |
| 161 | Tu peux modifier cette redirection</a> et la faire pointer vers ton adresse |
| 162 | {$smarty.session.forlife}@{#globals.mail.domain#} (attention, cela demande de la concentration). |
| 163 | </p> |
| 164 | <p> |
| 165 | Si tu utilises le service POP de poly pour récupérer tes mails dans ton logiciel de courrier, |
| 166 | l'équipe de Polytechnique.org te conseille de rediriger : |
| 167 | </p> |
| 168 | <ul> |
| 169 | <li>«prenom.nom»@polytechnique.edu vers {$smarty.session.forlife}@{#globals.mail.domain#}</li> |
| 170 | <li>{$smarty.session.forlife}@{#globals.mail.domain#} vers «login»@poly.polytechnique.fr</li> |
| 171 | </ul> |
| 172 | <p> |
| 173 | Attention à ne pas faire une boucle quand tu manipules tes redirections ! Tes emails seraient |
| 174 | alors perdus, jusqu'à ce que tu règles le problème. |
| 175 | </p> |
| 176 | {/if} |
| 177 | |
| 178 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |