From: Stephen L Johnson Date: Thu, 30 Nov 2000 21:27:40 +0000 (+0000) Subject: added default msg template if default templ. not found in spong.message file X-Git-Tag: spong-2_7_2~44 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff27a721b9e348203f1b9795167422935e1fd45;p=spong.git added default msg template if default templ. not found in spong.message file --- diff --git a/src/spong-message.pl b/src/spong-message.pl index 5a5a4e0..dea7ae5 100755 --- a/src/spong-message.pl +++ b/src/spong-message.pl @@ -12,7 +12,7 @@ # (2) Added rules based paging (Stephen Johnson Nov 14, 1998) # (3) Added checks against Acks and downtime (Stephen Johnson Mar 17, 1999) # -# $Id: spong-message.pl,v 1.15 2000/10/16 15:34:32 sljohnson Exp $ +# $Id: spong-message.pl,v 1.16 2000/11/30 21:27:40 sljohnson Exp $ use lib "@@LIBDIR@@"; @@ -660,7 +660,12 @@ sub eval_template { $TEMPLATES{"$rcpt:$func"} || $TEMPLATES{"$func"} || $TEMPLATES{"$rcpt"} || - $TEMPLATES{"DEFAULT"}; + $TEMPLATES{"DEFAULT"} || + { 'subject' => 'spong - !!COLOR!! !!HOST!! !!SERVICE!!', + 'body' => '!!DATETIME!! +!!COLOR!! !!HOST!! !!SERVICE!! +!!SUMMARY!!', + }; if (! $templ) { &error("No custom message template or default template found");