From: Stephen L Johnson Date: Fri, 5 Nov 1999 21:12:07 +0000 (+0000) Subject: Initial revision X-Git-Tag: spong-2_6-beta7~31 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d1845ab0486b134d36ab393a752f5aebbc5f28;p=spong.git Initial revision --- diff --git a/www/docs/spong-message-mod-template.html b/www/docs/spong-message-mod-template.html new file mode 100755 index 0000000..d5d6674 --- /dev/null +++ b/www/docs/spong-message-mod-template.html @@ -0,0 +1,40 @@ + + + + + + + spong-message Module Template + + + +

+spong-message Module Template

+ +
+
This template assumes that you are creating a messaging function called +'teletouch_short'. The name of the file created should be 'msg_teletouch_short'. +The file name should always be 'msg_' and the registry name (e.g. for the +foo messaging function, the registry name is 'foo' and the file name is +'msg_foo'. +

The line that has the assignment to $MSGFUNCS{'registry-name'} is the +key to the registry mechanism. It's what track the registry name to the +your check function. +
  +

# Message function for Teletouch pagers using e-mail delivery +
# but using the e-mail mini status function instead. This is a +

$MSGFUNCS{'teletouch_short'} = \&msg_teletouch_short; +

sub msg_teletouch_short { +
   my ($pager) = @_; +

   &email_mini_status("$pager\@pageme.teletouch.com",'shortsubject'); +
   &debug( "teletouch short page sent to $pager" +); +
} +

# Required because I'm included perl code +
1; +

Please note the final line. It is always required for a module file. +
  +
  +
  + +