<link href="{{ header.absoluteThemePath }}/style.css" rel="stylesheet" type="text/css" />
<div id="kmailPage">
<div id="headerbox" dir="ltr">
        {% if header.showMailAction %}
        {% if header.screenmode %}
        <div class="actiontable">
          <div class="actionrowtable">
              <div class="theactioncell"> {{ header.newmessageaction|safe }} </div>
              <div class="theactioncell"> {{ header.printpreviewmessageaction|safe }} </div>
              <div class="theactioncell"> {{ header.printmessageaction|safe }} </div>
              <div class="theactioncell theactionbigcell"></div>
              <div class="theactioncell"> {{ header.replyaction|safe }} </div>
              <div class="theactioncell"> {{ header.replyallaction|safe }} </div>
              <div class="theactioncell"> {{ header.forwardaction|safe }} </div>
              {% if header.readOnlyMessage %}
              {% else %}
              <div class="theactioncell"> {{ header.trashaction|safe }} </div>
              {% endif %}
           </div>
        </div>
        {% endif %}
        {% endif %}
        <div id="subject" dir="{{ header.subjectDir }}">{{ header.subject|safe }}</div>
	<div id="photo">
		{% if header.photourl %}
		<img src="{{ header.photourl }}" width="{{ header.photowidth }}" height="{{ header.photoheight }}" />
		{% else %}
		<img src="{{ header.absoluteThemePath }}/photo.svg" width="{{ header.photowidth }}" height="{{ header.photoheight }}" />
		{% endif %}
	</div>
	<div class="table">
		<div class="row">
			<div class="headerleft">{{ header.fromi18n }}</div>
			<div class="headerright">
				{{ header.from|safe }}
				{% if header.resentfrom %}
				{{ header.resentfromi18n }}: {{ header.resentfrom|safe }}
				{% endif %}
				{% if vCardName %}
				<a href="{{ header.vcardname|safe }}">{{ header.vcardi18n }}</a>
				{% endif %}
				{% if header.organization %}
				({{ header.organization|safe }})
				{% endif %}
			</div>
		</div>
		<div class="row">
			<div class="headerleft">{{ header.toi18n }}</div>
			<div class="headerright">{{ header.toExpandable|safe }}</div>
		</div>
		{% if header.cc %}
		<div class="row">
			<div class="headerleft">{{ header.cci18n }}</div>
			<div class="headerright">{{ header.ccExpandable|safe }}</div>
		</div>
		{% endif %}
		{% if header.bcc %}
		<div class="row">
			<div class="headerleft">{{ header.bcci18n }}</div>
			<div class="headerright">{{ header.bcc|safe }}</div>
		</div>
		{% endif %}
		{% if header.sender %}
		<div class="row">
			<div class="headerleft">{{ header.senderi18n }}</div>
			<div class="headerright">{{ header.sender|safe }}</div>
		</div>
		{% endif %}
		{% if header.listid %}
		<div class="row">
			<div class="headerleft">{{ header.listidi18n }}</div>
			<div class="headerright">{{ header.listid }}</div>
		</div>
		{% endif %}
		<div class="row">
			<div class="headerleft">{{ header.datei18n }}</div>
			<div class="headerrightdate" dir="{{ header.applicationDir }}">{{ header.dateshort }}</div>
		</div>
		{% if header.spamHTML %}
		<div class="row">
			<div class="headerleft">{{ header.spamstatusi18n }}</div>
			<div class="headerrightdate">{{ header.spamHTML|safe }}</div>
		</div>
		{% endif %}
	</div>
	<div id="attachmentInjectionPoint"></div>
</div>
<div id="kmailContent">
