aw schriftzug.png aw logo 60x60.png

Templates for the MailInContrib

DO NOT MODIFY THIS TOPIC

This is a normal topic, but it is also a template file, as described in SkinTemplates. It contains the template definitions used by the MailInContrib to insert mail messages in topics.

Each template is specified in the form of a pair of template definitions, (surrounded by verbatim tags below for readability). The template to use when inserting incoming mail in a topic is decided from the parameters in the ←-MAIL--> comment in the topic. The default template is normal.

You can add any header you like from the mail using the =%MAILHEADER{Fieldname}% macro. Headers will be added verbatim, so beware of the risk of XSS.

%TMPL:DEF{MAILIN:normal}%   * *%SUBJECT%*: %TEXT% -- %WIKIUSERNAME% - %SERVERTIME%
%ATTACHMENTS%%TMPL:END%

%ATTACHMENTS% in the previous template will be expanded to a list of attachments that came in the mail. Each attachment in the list is formatted by the following template:
%TMPL:DEF{MAILIN:normal:ATTACHMENT}%      * [[%ATTACHURL%/%A_FILE%][%A_FILE%]]
%TMPL:END%

DO NOT MODIFY THIS TOPIC

If you want to modify or add any templates, create the topic MailInContribUserTemplate. This topic is automatically included here if it exists, but it is not shipped with the MailInContrib. You can create this topic in individual webs, as described in SkinTemplates. In this case the template will only apply when a mail is added to that specific web.

%TMPL:INCLUDE{"MailInContribUser"}%
Topic revision: r1 - 2014-05-07, UnknownUser
This site is powered by FoswikiCopyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback