From df09c23571eee2d45b856aed17b38deca44b0bbb Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 20 Sep 2009 12:45:32 +0200 Subject: announcement of new events by mail --- conf/epgsearchupdmail-html.templ | 58 +++++++++++++++++++++++++++++++++++----- conf/epgsearchupdmail.templ | 39 +++++++++++++++++++++++---- 2 files changed, 85 insertions(+), 12 deletions(-) (limited to 'conf') 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 # Christian Wieninger @@ -26,7 +32,7 @@ ######################################################################### # here's the mail's subject definition (no CR!) ######################################################################### -[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers +[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers / %update.countnewevents% new events / ######################################################################### @@ -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 { new timers:%update.countnewtimers% modified timers:%update.countmodtimers% deleted timers:%update.countdeltimers% +new events to report:%update.countnewevents%

@@ -132,6 +151,13 @@ a.rightspace {

+ + + +
Top New events to report
%update.newevents%
+ +

+

Have fun!

@@ -156,3 +182,21 @@ a.rightspace {

+ +############################################################################## +# 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. +############################################################################## + + + + + + + + +
Title:%title%
Subtitle:%subtitle%
Start/End:%time_w% %date% %time%-%timeend%
Channel:%chlng% (%chnr%)
Search:%search% (%searchid%)
Summary:%htmlsummary%
+

+
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!) ######################################################################### -[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers +[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers / %update.countnewevents% new events ######################################################################### @@ -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! ############################################################################## @@ -67,3 +79,20 @@ Summary: %summary% ---------------------------------------------------------------------- + +############################################################################## +# 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. +############################################################################## + + Title: %title% ~ %subtitle% + Start/End: %time_w% %date% %time%-%timeend% + Channel: %chlng% (%chnr%) + Search: %search% (%searchid%) + +Summary: +%summary% +---------------------------------------------------------------------- + -- cgit v1.2.3