~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/templates/mailnotify.tmpl

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{
 
2
   Templates for the parts of the mails sent out by mailnotify. The HTML
 
3
   and PLAIN templates are in three parts; header, body (which is repeated
 
4
   for each  change), and footer. The result is embedded in MailNotifyBody
 
5
}%
 
6
--------------------------------
 
7
%TMPL:DEF{HTML:before}%<h2>%MAKETEXT{"This is an automated e-mail from [_1]." args="%WIKITOOLNAME%"}%</h2>
 
8
<p>
 
9
<em>%MAKETEXT{"New or changed topics in [_1], since [_2]:" args="%WIKITOOLNAME%.%WEB%,%LASTDATE%"}%</em>
 
10
</p>
 
11
<table width="100%" border="0" cellpadding="0" cellspacing="4">
 
12
<tr bgcolor="#B9DAFF">
 
13
  <td width="50%">
 
14
    <b>%MAKETEXT{"Topics in [_1] web:" args="<nop>%WEB%"}%</b>
 
15
  </td><td width="30%">
 
16
    <b>%MAKETEXT{"Changed:"}%</b> (%MAKETEXT{"now [_1]" args="%DISPLAYTIME{"$hour:$min"}%"}%)
 
17
  </td><td width="20%">
 
18
    <b>%MAKETEXT{"Changed by"}%:</b>
 
19
  </td>
 
20
</tr>
 
21
%TMPL:END%
 
22
--------------------------------
 
23
%TMPL:DEF{HTML:middle}%<tr>
 
24
  <td width="50%">
 
25
    <a href="%SCRIPTURL{"view"}%/%WEB%/%TOPIC%"><b>%TOPIC%</b></a>
 
26
  </td><td width="30%">
 
27
    <a href="%SCRIPTURL{"rdiff"}%/%WEB%/%TOPIC%?rev2=%BASE_REV%&rev1=%CUR_REV%" rel='nofollow'>%TIME%</a> - %REVISION%
 
28
  </td><td width="20%">
 
29
    %AUTHOR%
 
30
  </td>
 
31
</tr>
 
32
<tr>
 
33
  <td colspan="2">
 
34
    <font size="-1">
 
35
    %TEXTHEAD% </font>
 
36
  </td><td width="20%">
 
37
    &nbsp;
 
38
  </td>
 
39
</tr>
 
40
%TMPL:END%
 
41
--------------------------------
 
42
%TMPL:DEF{HTML:after}%</table>
 
43
<br clear="all" />
 
44
<p>%MAKETEXT{"Review recent changes in:"}%
 
45
  <a href="%SCRIPTURL{"view"}%/%WEB%/WebChanges">%SCRIPTURL{"view"}%/%WEB%/WebChanges</a> </p>
 
46
 
 
47
<p>%MAKETEXT{"Subscribe / Unsubscribe in:"}%
 
48
  <a href="%SCRIPTURL{"view"}%/%WEB%/%NOTIFYTOPIC%">%SCRIPTURL{"view"}%/%WEB%/%NOTIFYTOPIC%</a> </p>
 
49
%TMPL:END%
 
50
--------------------------------
 
51
%TMPL:DEF{PLAIN:before}%%TMPL:END%
 
52
--------------------------------
 
53
%TMPL:DEF{PLAIN:middle}%- %TOPIC% (%AUTHOR%, %TIME%) %REVISION%
 
54
%SCRIPTURL{"view"}%/%ENCODE{%WEB%}%/%ENCODE{%TOPIC%}%
 
55
 
 
56
%TMPL:END%
 
57
--------------------------------
 
58
%TMPL:DEF{PLAIN:after}%%TMPL:END%
 
59
--------------------------------
 
60
%TMPL:DEF{MailNotifyBody}%From: %WIKIWEBMASTERNAME% <%WIKIWEBMASTER%>
 
61
To: %EMAILTO%
 
62
Subject: %WIKITOOLNAME%.%WEB% - %MAKETEXT{"Automated notification of topic changes"}%
 
63
MIME-Version: 1.0
 
64
Content-Type: multipart/alternative; boundary="=_=0i0k0i0w0tXuOi0E0A"
 
65
 
 
66
This is a multi-part message in MIME format.
 
67
--=_=0i0k0i0w0tXuOi0E0A
 
68
Content-Type: text/plain; charset=%CHARSET%; format=flowed
 
69
Content-Transfer-Encoding: 8bit
 
70
 
 
71
%MAKETEXT{"This is an automated e-mail from [_1]." args="%WIKITOOLNAME%"}%
 
72
 
 
73
%MAKETEXT{"New or changed topics in [_1], since [_2]:" args="%WIKITOOLNAME%.%WEB%,%LASTDATE%"}%
 
74
 
 
75
%PLAIN_TEXT%
 
76
%MAKETEXT{"Review recent changes in:"}%
 
77
  %SCRIPTURL{"view"}%/%WEB%/WebChanges
 
78
 
 
79
%MAKETEXT{"Subscribe / Unsubscribe in:"}%
 
80
  %SCRIPTURL{"view"}%/%WEB%/%NOTIFYTOPIC%
 
81
 
 
82
--=_=0i0k0i0w0tXuOi0E0A
 
83
Content-Type: text/html; charset=%CHARSET%
 
84
Content-Transfer-Encoding: 8bit
 
85
 
 
86
%HTML_TEXT%
 
87
 
 
88
--=_=0i0k0i0w0tXuOi0E0A--
 
89
%TMPL:END%