Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
c441aabe | 3 | {* Copyright (C) 2003-2014 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 | ||
2eb2747c | 23 | <h1>Gestion de mes emails</h1> |
0337d704 | 24 | |
cdafa49e | 25 | {literal} |
26 | <script type="text/javascript"> | |
b0e935d6 | 27 | //<![CDATA[ |
4171c0bf | 28 | $(function() { |
b0e935d6 FB |
29 | var url = '{/literal}{$globals->baseurl}/emails/best/{literal}'; |
30 | var tok = '{/literal}{xsrf_token}{literal}'; | |
31 | var msg = "Le changement a bien été effectué."; | |
32 | $(':radio[name=best]').change(function() { | |
33 | $("#bestalias-msg").successMessage(url + $(this).val() + '?token=' + tok, msg); | |
34 | }); | |
35 | }); | |
36 | //]]> | |
bb0727ea | 37 | </script> |
cdafa49e | 38 | {/literal} |
8197367c FB |
39 | |
40 | <fieldset> | |
41c696f9 | 41 | <legend>{icon name="email"} Mes adresses polytechniciennes</legend> |
8197367c FB |
42 | |
43 | <div> | |
41c696f9 NI |
44 | Tes adresses polytechniciennes sont : |
45 | <dl> | |
46 | {if $aliases_forlife|@count} | |
47 | <dt>Adresses garanties à vie</dt> | |
48 | <dd> | |
49 | {foreach from=$aliases_forlife item=a} | |
50 | <label> | |
51 | <input type='radio' {if $a.bestalias}checked="checked"{/if} name='best' value='{$a.email}' /> | |
52 | <strong>{$a.email}</strong> | |
53 | </label> | |
54 | {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if} | |
55 | <br /> | |
56 | {/foreach} | |
57 | </dd> | |
58 | {/if} | |
59 | <br/> | |
60 | {if $aliases_hundred|@count} | |
61 | <dt>Adresses garanties 100 ans (*)</dt> | |
62 | <dd> | |
63 | {foreach from=$aliases_hundred item=a} | |
64 | <label> | |
65 | <input type='radio' {if $a.bestalias}checked="checked"{/if} name='best' value='{$a.email}' /> | |
66 | <strong>{$a.email}</strong> | |
67 | </label> | |
68 | {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if} | |
69 | <br /> | |
70 | {/foreach} | |
71 | </dd> | |
72 | {/if} | |
73 | <br/> | |
74 | {if $aliases_other|@count} | |
75 | <dt>Autres adresses (**)</dt> | |
76 | <dd> | |
77 | {foreach from=$aliases_other item=a} | |
78 | <label> | |
79 | <input type='radio' {if $a.bestalias}checked="checked"{/if} name='best' value='{$a.email}' /> | |
80 | <strong>{$a.email}</strong> | |
81 | </label> | |
82 | {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if} | |
83 | {if $a.alias}<a href="emails/alias">(changer ou supprimer mon alias melix)</a>{/if} | |
84 | <br /> | |
85 | {/foreach} | |
86 | </dd> | |
87 | {/if} | |
88 | </dl> | |
8197367c FB |
89 | <p class="smaller"> |
90 | L'adresse cochée est celle que tu utilises le plus (et qui sera donc affichée sur ta carte de visite, ta fiche…). | |
91 | <br />Coche une autre case pour en changer ! | |
92 | </p> | |
93 | ||
b4503762 | 94 | <p id="bestalias-msg" class="center"></p> |
8197367c FB |
95 | </div> |
96 | <hr /> | |
97 | <div> | |
98 | (M4X signifie <em>mail for X</em>, son intérêt est de te doter d'une adresse à vie | |
f036c896 | 99 | moins "voyante" que l'adresse {$main_email_domain}). |
b4503762 | 100 | {if !$alias} |
f036c896 | 101 | Tu peux ouvrir en supplément une adresse synonyme de ton adresse @{$main_email_domain}, |
8197367c | 102 | sur les domaines @{#globals.mail.alias_dom#} et @{#globals.mail.alias_dom2#} (melix = Mél X).<br /> |
0d66652e | 103 | <div class="center"><a href="emails/alias">Créer un alias melix</a></div> |
8197367c FB |
104 | {/if} |
105 | </div> | |
106 | </fieldset> | |
0337d704 | 107 | |
108 | <p class="smaller"> | |
e9d30b93 | 109 | {assign var="profile" value=$smarty.session.user->profile()} |
41c696f9 | 110 | (*) Ces adresses email te sont réservées pour une période de 100 ans après ton entrée à l'X (dans ton cas, jusqu'en {$profile->yearpromo()+100}). |
05e60199 | 111 | </p> |
112 | <p class="smaller"> | |
41c696f9 | 113 | {if $aliases_other|@count}(**) {/if} |
31170a38 | 114 | {if $homonyme} |
f036c896 | 115 | Tu as un homonyme donc tu ne peux pas profiter de l'alias {$homonyme}@{$main_email_domain}. Si quelqu'un essaie |
faefdbb7 | 116 | d'envoyer un email à cette adresse par mégarde il recevra une réponse d'un robot lui expliquant l'ambiguité et lui |
a7de4ef7 | 117 | proposant les adresses des différents homonymes. |
31170a38 | 118 | {else} |
f036c896 SJ |
119 | Si tu venais à avoir un homonyme, l'alias «prenom.nom»@{$main_email_domain} sera désactivé. Si bien que |
120 | ton homonyme et toi-même ne disposeraient plus que des adresses de la forme «prenom.nom.promo»@{$main_email_domain}. | |
31170a38 | 121 | {/if} |
0337d704 | 122 | </p> |
123 | ||
0337d704 | 124 | <br /> |
125 | ||
8197367c FB |
126 | <fieldset> |
127 | <legend>{icon name="email_go"} Où est-ce que je reçois les emails qui m'y sont adressés ?</legend> | |
0337d704 | 128 | |
8197367c FB |
129 | <div> |
130 | {if count($mails) eq 0} | |
131 | <p class="erreur"> | |
132 | Tu n'as actuellement aucune adresse de redirection. Tout email qui t'est envoyé sur tes | |
133 | adresses polytechniciennes génère une erreur. Modifie au plus vite ta liste de redirection.<br/> | |
134 | </p> | |
135 | {else} | |
136 | Actuellement, tout email qui t'y est adressé, est envoyé | |
137 | {if count($mails) eq 1} à l'adresse{else} aux adresses{/if} : | |
138 | <ul> | |
139 | {foreach from=$mails item=m} | |
140 | <li><strong>{$m->display_email}</strong></li> | |
141 | {/foreach} | |
142 | </ul> | |
143 | {/if} | |
8197367c FB |
144 | Si tu souhaites <strong>modifier ce reroutage de tes emails,</strong> |
145 | <a href="emails/redirect">il te suffit de te rendre ici !</a> | |
142ca454 | 146 | {test_email} |
8197367c FB |
147 | </div> |
148 | </fieldset> | |
0337d704 | 149 | |
150 | <br /> | |
151 | ||
8197367c FB |
152 | <fieldset> |
153 | <legend>{icon name="bug_delete" text="Antivirus, antispam"} Antivirus, antispam</legend> | |
0337d704 | 154 | |
8197367c FB |
155 | <p> |
156 | Tous les emails qui te sont envoyés sur tes adresses polytechniciennes sont | |
157 | <strong>filtrés par un logiciel antivirus</strong> très performant. Il te protège de ces | |
158 | vers très gênants, qui se propagent souvent par email. | |
159 | </p> | |
160 | <p> | |
161 | De même, un <strong>service antispam évolué</strong> est en place. Tu peux lui demander | |
162 | de te débarrasser des spams que tu reçois. Pour en savoir plus, et l'activer, | |
163 | <a href="emails/antispam">c'est très simple, suis ce lien</a> ! | |
164 | </p> | |
165 | </fieldset> | |
0337d704 | 166 | |
448c8cdc | 167 | {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *} |