summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-20 12:45:32 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-20 12:45:32 +0200
commitdf09c23571eee2d45b856aed17b38deca44b0bbb (patch)
tree99c0f827137d8535884562893fb5a92893e0dbd7 /conf
parent5b4c9ee0bf713fc36709563733059426458ab485 (diff)
downloadvdr-plugin-epgsearch-df09c23571eee2d45b856aed17b38deca44b0bbb.tar.gz
vdr-plugin-epgsearch-df09c23571eee2d45b856aed17b38deca44b0bbb.tar.bz2
announcement of new events by mail
Diffstat (limited to 'conf')
-rw-r--r--conf/epgsearchupdmail-html.templ58
-rw-r--r--conf/epgsearchupdmail.templ39
2 files changed, 85 insertions, 12 deletions
diff --git a/conf/epgsearchupdmail-html.templ b/conf/epgsearchupdmail-html.templ
index 65ac3f9..1562c68 100644
--- a/conf/epgsearchupdmail-html.templ
+++ b/conf/epgsearchupdmail-html.templ
@@ -7,16 +7,22 @@
# - "subject" to be used as mail subject
# - "mailbody" the body of the mail:
# put %update.newtimers% in the place where the list of new timers should
-# appear. The same for %update.modtimers% and %update.deltimers% for the
-# list of changed or deleted timers.
-# - "timer" the description of one timer. This section is used to display one
-# timer within a timer list, e.g. in %update.newtimers%
+# appear. The same for %update.modtimers%, %update.deltimers% and
+# %update.newevents& for the list of changed or deleted timers and event
+# announcements.
+# - "timer" the description of one timer and "event" with the description of
+# one event. This section is used to display one timer within a timer list,
+# e.g. in %update.newtimers%. The same for "event".
#
-# close each section with the corresponding end tag!
+# All sections are optional, e.g. if you don't use event announcements you
+# can drop "%update.newevents%" in the mailbody and the "event" section. But
+# of course you should have at least a mailbody ;-)
+#
+# close each section with the correspondig end tag!
# Please have a look at the MANUAL for the available variables.
#########################################################################
#
-# Version: 0.3 Date: 24.09.2006
+# Version: 0.4 Date: 20.09.2009
#
# Author: Mike Constabel <vejoun @ vdrportal>
# Christian Wieninger <winni @ vdrportal>
@@ -26,7 +32,7 @@
#########################################################################
# here's the mail's subject definition (no CR!)
#########################################################################
-<subject>[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers</subject>
+<subject>[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers / %update.countnewevents% new events /</subject>
#########################################################################
@@ -82,6 +88,18 @@ th.timer {
font-weight: normal;
}
+/* design of each event table inside the main tables */
+table.event {
+ width: 100%;
+ }
+table.event, tr.event {
+ border-style: none;
+ }
+th.event {
+ background-color: #ffb3a4;
+ font-weight: normal;
+ }
+
/* space between the timer tables */
p.smallspace {
line-height: 20px;
@@ -107,6 +125,7 @@ a.rightspace {
<tr><td><a href="#new">new timers:</a></td><td>%update.countnewtimers%</td></tr>
<tr><td><a href="#mod">modified timers:</a></td><td>%update.countmodtimers%</td></tr>
<tr><td><a href="#del">deleted timers:</a></td><td>%update.countdeltimers%</td></tr>
+<tr><td><a href="#events">new events to report:</a></td><td>%update.countnewevents%</td></tr>
</table>
<p class="bigspace"></p>
@@ -132,6 +151,13 @@ a.rightspace {
<p class="bigspace"></p>
+<table class="main">
+<tr><th colspan="2"><a href="#info" class="rightspace">Top</a> <a name="events"></a>New events to report</th></tr>
+<tr><td>%update.newevents%</td></tr>
+</table>
+
+<p class="bigspace"></p>
+
<p>Have fun!</p>
</body>
</html></mailbody>
@@ -156,3 +182,21 @@ a.rightspace {
</table>
<p class="smallspace"></p>
</timer>
+
+##############################################################################
+# here's the event definition, which is used to display information about
+# an event in the announcement list. You can use any variables that refer
+# to an event. You can also use 'user defined' variables from
+# epgsearchuservars.conf.
+##############################################################################
+<event>
+<table class="event">
+<tr class="event"><th class="timer">Title:</th><th class="timer">%title%</th></tr>
+<tr class="event"><td>Subtitle:</td><td>%subtitle%</td></tr>
+<tr class="event"><td>Start/End:</td><td>%time_w% %date% %time%-%timeend%</td></tr>
+<tr class="event"><td>Channel:</td><td>%chlng% (%chnr%)</td></tr>
+<tr class="timer"><td>Search:</td><td>%search% (%searchid%)</td></tr>
+<tr class="timer"><td valign="top">Summary:</td><td>%htmlsummary%</td></tr>
+</table>
+<p class="smallspace"></p>
+</event>
diff --git a/conf/epgsearchupdmail.templ b/conf/epgsearchupdmail.templ
index 8d186fc..5d547e9 100644
--- a/conf/epgsearchupdmail.templ
+++ b/conf/epgsearchupdmail.templ
@@ -1,15 +1,22 @@
#########################################################################
# This is a sample template for email notifications about timer changes
+# and/or events announcements
# (NOTE: This is a sample for a text mail, but you could use HTML as well)
#
# There are 3 sections that have to be defined:
# - "subject" to be used as mail subject
# - "mailbody" the body of the mail:
# put %update.newtimers% in the place where the list of new timers should
-# appear. The same for %update.modtimers% and %update.deltimers% for the
-# list of changed or deleted timers.
-# - "timer" the description of one timer. This section is used to display one
-# timer within a timer list, e.g. in %update.newtimers%
+# appear. The same for %update.modtimers%, %update.deltimers% and
+# %update.newevents& for the list of changed or deleted timers and event
+# announcements.
+# - "timer" the description of one timer and "event" with the description of
+# one event. This section is used to display one timer within a timer list,
+# e.g. in %update.newtimers%. The same for "event".
+#
+# All sections are optional, e.g. if you don't use event announcements you
+# can drop "%update.newevents%" in the mailbody and the "event" section. But
+# of course you should have at least a mailbody ;-)
#
# close each section with the correspondig end tag!
# Please have a look at the MANUAL for the available variables.
@@ -19,7 +26,7 @@
#########################################################################
# here's the mail's subject definition (no CR!)
#########################################################################
-<subject>[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers</subject>
+<subject>[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers / %update.countnewevents% new events</subject>
#########################################################################
@@ -32,6 +39,7 @@
new timers: %update.countnewtimers%
modified timers: %update.countmodtimers%
deleted timers: %update.countdeltimers%
+ new events: %update.countnewevents%
the following timers have been added:
----------------------------------------------------------------------
@@ -45,6 +53,10 @@ the following timers have been deleted:
----------------------------------------------------------------------
%update.deltimers%
+the following events where found:
+----------------------------------------------------------------------
+%update.newevents%
+
Have fun!</mailbody>
##############################################################################
@@ -67,3 +79,20 @@ Summary:
%summary%
----------------------------------------------------------------------
</timer>
+
+##############################################################################
+# here's the event definition, which is used to display information about
+# an event within the list of event announcements. You can use any variables
+# that refer to an event. You can also use 'user defined' variables from
+# epgsearchuservars.conf.
+##############################################################################
+<event>
+ Title: %title% ~ %subtitle%
+ Start/End: %time_w% %date% %time%-%timeend%
+ Channel: %chlng% (%chnr%)
+ Search: %search% (%searchid%)
+
+Summary:
+%summary%
+----------------------------------------------------------------------
+</event>