Tags:
view all tags
---+ Templates for the !MailInContrib *DO NOT MODIFY THIS TOPIC* This is a normal TWiki topic, but it is also a template file, as described in %SYSTEMWEB%.TWikiTemplates. It contains the template definitions used by the MailInContrib to insert mail messages in topics. Each template is specified in the form of three TWiki template definitions, (surrounded by verbatim tags below for readability). The template to use when inserting incoming mail in a topic is decided by the ={MailInContrib}= configure setting and from the parameters in the =<--MAIL-->= comment in the topic. The default template is called =default=. ---++ MAILIN:default template The first template definition controls how the mail is formatted: <verbatim> %TMPL:DEF{MAILIN:default}% * Subject: %MAILSUBJECT% * From: %MAILFROM% * To: %MAILTO% * CC: %MAILCC% * Date: %MAILDATE% %MAILBODY% __Attachments:__ %MAILATTACHMENTS% -- %WIKIUSERNAME% - %SERVERTIME% %TMPL:END% </verbatim> =%<nop>MAILATTACHMENTS%= 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 one of the following templates - the MAILIN:...:ATTACHMENT is used for regular attachments, MAILIN:...:IMAGE for image files: <verbatim> %TMPL:DEF{MAILIN:default:ATTACHMENT}% * [[%ATTACHURL%/%A_FILE%][%A_FILE%]] %TMPL:END% %TMPL:DEF{MAILIN:default:IMAGE}% * [[%ATTACHURL%/%A_FILE%][%A_FILE%]] %BR% <img src='%ATTACHURL%/%A_FILE%' style='max-width:800px' alt='' /> %TMPL:END% </verbatim> ---++ MAILIN:normal template Legacy "normal" template: <verbatim> %TMPL:DEF{MAILIN:normal}% * *%SUBJECT%*: %MAILBODY% -- %WIKIUSERNAME% - %%SERVERTIME% %MAILATTACHMENTS%%TMPL:END% %TMPL:DEF{MAILIN:normal:ATTACHMENT}% * [[%ATTACHURL%/%A_FILE%][%A_FILE%]] %TMPL:END% </verbatim> *DO NOT MODIFY THIS TOPIC* If you want to modify or add any templates, create the TWiki topic %SYSTEMWEB%.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 %SYSTEMWEB%.TWikiTemplates. In this case the template will only apply in that specific web. <!-- The following line includes a *template* called "MailInContribUser", which the template search rules automatically resolve to a *topic* called MailInContribUserTemplate. --> %TMPL:INCLUDE{"MailInContribUser"}%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2015-09-16
-
TWikiAdminUser
Home
Site map
Sandbox web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Register User
Edit
Attach
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.MailInContribTemplate
.