use nice URI's for the email module
[platal.git] / templates / emails / redirect.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 Polytechnique.org *}
0337d704 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">
1aef801a 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.
0337d704 38 </p>
39{/if}
0337d704 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
51750d50 73 <a href="{rel}/Docs/SMTPS%E9curis%E9">service d'envoi de courrier SMTP sécurisé</a>.
0337d704 74 </p>
81b5b746 75<form action="{rel}/emails/redirect" method="post">
0337d704 76 <div class="center">
77 <table class="bicol" summary="Adresses de redirection">
78 <tr>
79 <th>Email</th>
80 <th>Actif</th>
81 <th>Réécriture</th>
82 <th>&nbsp;</th>
83 </tr>
84 {foreach from=$emails item=e}
85 <tr class="{cycle values="pair,impair"}">
86 <td><strong>{$e->email}</strong></td>
87 <td>
88 <input type="checkbox" name="emails_actifs[]" value="{$e->email}" {if $e->active}checked="checked"{/if} /></td>
89 <td>
90 <select name="emails_rewrite[{$e->email}]">
91 <option value=''>--- aucune ---</option>
92 {foreach from=$alias item=a}
93 <option {if $e->rewrite eq "`$a.alias`@polytechnique.org"}selected='selected'{/if}
94 value='{$a.alias}@polytechnique.org'>{$a.alias}@polytechnique.org</option>
95 <option {if $e->rewrite eq "`$a.alias`@m4x.org"}selected='selected'{/if}
96 value='{$a.alias}@m4x.org'>{$a.alias}@m4x.org</option>
97 {/foreach}
98 </select>
99 </td>
81b5b746 100 <td><a href="{rel}/emails/redirect/remove/{$e->email}">retirer</a></td>
0337d704 101 </tr>
102 {/foreach}
1aef801a 103 <tr class="{cycle values="pair,impair"}"><td colspan="4">
104 &nbsp;<br />
105 Ajouter une adresse email :
106 <input type="text" size="35" maxlength="60" name="email" value="" />
107 &nbsp;&nbsp;<input type="submit" value="ajouter" name="emailop" />
108 </td></tr>
0337d704 109 </table>
110 <br />
1aef801a 111 <input type="submit" value="Valider les modifications" name="emailop" />
0337d704 112 </div>
113</form>
1aef801a 114
115<h1>Pour les Élèves (non encore diplômés)</h1>
116<p>
117 L'X te fourni aussi une adresse à vie en <strong>«prenom.nom»@polytechnique.edu</strong> qui par défaut est
118 une redirection vers «login»@poly.polytechnique.fr. <a href="https://mail.polytechnique.edu/">
119 Tu peux modifier cette redirection</a> et la faire pointer vers ton adresse
120 {$smarty.session.forlife}@{#globals.mail.domain#} (attention, cela demande de la concentration).
121</p>
122<p>
123 Si tu utilises le service POP de poly pour récupérer tes mails dans ton logiciel de courrier,
124 l'équipe de Polytechnique.org te conseille de rediriger :
125</p>
126<ul>
127 <li>«prenom.nom»@polytechnique.edu vers {$smarty.session.forlife}@{#globals.mail.domain#}</li>
128 <li>{$smarty.session.forlife}@{#globals.mail.domain#} vers «login»@poly.polytechnique.fr</li>
129</ul>
130
0337d704 131{* vim:set et sw=2 sts=2 sws=2: *}