<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
  <head>
    <title>MailArchive - $message.subject</title>
    <script type="text/javascript">
      jQuery(document).ready(function($) {
        $("#content").find("h1,h2,h3,h4,h5,h6").addAnchor("${_('Link to this section')}");
      });
    </script>
  </head>

  <body>
    <div id="content" class="mailarchive">


 <form py:if="len(reflist) >=2" id="prefs" method="get" action="">
  <label >関連するメール:</label>
  <ul>
  <py:for each="refmail in reflist">
    <li>
      <py:choose test="refmail.href!=''">
        <py:when test="True">
          <a class="subject" href="$refmail.href" alt="$refmail.subject_alt">$refmail.subject</a>
        </py:when>
        <py:otherwise>
          <strong alt="$refmail.subject_alt">$refmail.subject</strong>
        </py:otherwise>
      </py:choose>
    <span class="prefs_from" >$refmail.fromname</span></li>
  </py:for>
  </ul>
 </form>

  <h2>$message.subject</h2>
  <ul>
    <li>From:<a class="mail-link" href="mailto:$message.fromaddr"><span class="icon">$message.fromname</span></a></li>
    <li>Date:$message.senddate</li>
  </ul>

  <div class="mailarcpage searchable">$message.page_html</div>

  ${list_of_attachments(attachments,True)}

</div>

  </body>
</html>


