--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2003-2013 Polytechnique.org *
+ * http://opensource.polytechnique.org/ *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ ***************************************************************************/
+
+
+
+div.ax_mail {
+ margin : auto;
+ width : 72ex;
+ font-family : "Georgia", serif;
+ font-size : 10pt;
+ text-align : justify;
+ background-color : #fff;
+ color : #4a4a49;
+}
+
+div.ax_mail a[href] {
+ background-color : #fff;
+ color : #546a77;
+}
+
+div.ax_mail a[href]:hover {
+ background-color : #fff;
+ color : #546a77;
+}
+
+div.ax_mail div.title {
+ margin : 0ex;
+ padding : 110px 1ex 1ex 1ex;
+ font-size : 120%;
+ font-weight : bold;
+ text-align : left;
+ color : #0a293b;
+ font-family: "Century Gothic", sans-serif;
+ background-repeat : no-repeat;
+ background-position : 0ex 0ex;
+ background-image: url(https://www.polytechnique.org/images/x_mail_header.jpg);
+}
+
+div.ax_mail div.intro {
+ margin : 4ex 2ex 2ex 2ex;
+}
+
+div.ax_mail div.body {
+ margin : 0;
+ padding : 0 20px;
+}
+
+div.ax_mail div.body h1 {
+ margin : 4ex -20px 2ex -20px;
+ padding : 0.4ex 20px;
+ font-size : 100%;
+ font-weight : bold;
+ background-color : #fff;
+ color : #0a293b;
+ border-width : thin 0;
+ border-style : solid;
+ border-color : #a40000;
+font-family: "Century Gothic", sans-serif;
+}
+
+div.ax_mail div.body h2 {
+ margin : 2ex -20px 2ex -20px;
+ padding : 0.4ex 40px;
+ font-size : 100%;
+ font-weight : normal;
+ background-color : #fff;
+ color : #0a293b;
+ border-width : 0 0 thin 0;
+ border-style : dotted;
+ border-color : #a40000;
+font-family: "Century Gothic", sans-serif;
+}
+
+div.ax_mail div.signature {
+ margin : 2ex 2ex 0 0ex;
+ font-size : 90%;
+ font-style: italic;
+ text-align : right;
+
+}
+
+div.ax_mail div.foot1 {
+ margin : 2ex 0 0;
+ padding : 0.5ex 2ex;
+ font-size : 90%;
+ background-color : #fff;
+ color : #4a4a49;
+ border-width : thin 0;
+ border-style : solid;
+ border-color : #ddd;
+ text-align : center;
+}
+
+div.ax_mail div.foot2 {
+ padding : 1ex 0;
+ font-size : 90%;
+ background-color : #fff;
+ color : #4a4a49;
+ text-align : center;
+}
+
--- /dev/null
+{**************************************************************************}
+{* *}
+{* Copyright (C) 2003-2013 Polytechnique.org *}
+{* http://opensource.polytechnique.org/ *}
+{* *}
+{* This program is free software; you can redistribute it and/or modify *}
+{* it under the terms of the GNU General Public License as published by *}
+{* the Free Software Foundation; either version 2 of the License, or *}
+{* (at your option) any later version. *}
+{* *}
+{* This program is distributed in the hope that it will be useful, *}
+{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
+{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
+{* GNU General Public License for more details. *}
+{* *}
+{* You should have received a copy of the GNU General Public License *}
+{* along with this program; if not, write to the Free Software *}
+{* Foundation, Inc., *}
+{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
+{* *}
+{**************************************************************************}
+
+{config_load file="mails.conf" section="mails_ecole"}
+{if $mail_part eq 'head'}
+{from full=#from#}
+{subject text=$issue->title(true)}
+{if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if}
+{if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if}
+{elseif $mail_part eq 'text'}
+{if !$is_mail}
+<pre style="width : 72ex; margin: auto">
+{/if}
+====================================================================
+{$issue->title()}
+====================================================================
+
+{$issue->head($user, 'text')}
+
+{$issue->signature('text')}
+
+--------------------------------------------------------------------
+Cette lettre est envoyée par l'École polytechnique grâce aux outils de Polytechnique.org.
+
+{if $is_mail}
+archives : <https://www.polytechnique.org/epletter>
+ne plus recevoir : <https://www.polytechnique.org/epletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}>
+{else}
+archives : <https://www.polytechnique.org/epletter>
+ne plus recevoir : <https://www.polytechnique.org/epletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}>
+{/if}
+
+{if !$is_mail}
+</pre>
+{/if}
+{elseif $mail_part eq 'html'}
+{if $is_mail}
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Lettre d'information de l'École polytechnique</title>
+ <style type="text/css">
+ {literal}
+ body { background-color: #ddd; color: #000; }
+ {/literal}
+ <!--
+ {$issue->css()}
+ -->
+ </style>
+ </head>
+ <body>
+ <div class="x_background">
+{/if}
+ <div class='x_mail'>
+ <div class="title">{$issue->title()}</div>
+ <div class="intro">{$issue->head($user, 'html')|smarty:nodefaults}</div>
+ <div class="signature">{$issue->signature('html')|smarty:nodefaults}</div>
+ <div class="foot1">
+ Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
+ </div>
+ <div class="foot2">
+ [<a href="https://www.polytechnique.org/epletter">archives</a> |
+ <a href="https://www.polytechnique.org/epletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}">ne plus recevoir</a>]
+ </div>
+ </div>
+{if $is_mail}
+ </div>
+ </body>
+</html>
+{/if}
+{/if}
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}