mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
new: parameters module refactored. The API is more simple now, there is no need to provide a module name anymore, this last is automatically guessed. Also, a new 'label' field can be provide when declaring a new parameter. It will be used instead of the name. new: email parsing refactored. My first attempt was really ugly. I did not really studied the various RFC describing how messages are formatted or what IMAP fetch queries can do. Now, I hope this new code will face better unknown types. At least, It will be simpler to update.
17 lines
430 B
HTML
17 lines
430 B
HTML
{% extends "common/mailheaders.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block extraheaders %}
|
|
{% if attachments %}
|
|
<tr>
|
|
<th>{% trans "Attachments" %}</th>
|
|
<td>
|
|
{% url extensions.webmail.views.getattachment folder mail_id as test %}
|
|
{% for key, fname in attachments.items %}
|
|
<a href="{{ test }}?fname={{ fname }}&partnumber={{ key }}">{{ fname }}</a>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endblock %}
|