]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Allow templates to have a hook defined with them
authorAidan Van Dyk <aidan@ifax.com>
Thu, 8 Feb 2007 21:33:19 +0000 (21:33 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Thu, 8 Feb 2007 21:33:19 +0000 (21:33 +0000)
util/faxrcvd.sh.in
util/notify.sh.in
util/pollrcvd.sh.in

index fe49782ca289ba4ce6580d1ea9fd416230461100..9ce1a43a66df3816a00969f3fd372fbccb5ed1dc 100644 (file)
@@ -145,6 +145,12 @@ if [ -f etc/FaxDispatch ]; then
     . etc/FaxDispatch          # NB: FaxDispatch sets SENDTO
 fi
 
+if [ -f etc/templates/$TEMPLATE/hook.sh ]
+then
+    # Any hooks that the templates need
+    . etc/templates/$TEMPLATE/hook.sh
+fi
+
 
 ## MailWithFAX <type>
 ## Email the <type> template,adding the attachments according
index 55da73d4c9a973b311b2d1fe68182438292765cf..638f9f65567b831e3bb5079dfde6e4818716e9f4 100644 (file)
@@ -126,6 +126,11 @@ if [ -f etc/FaxNotify ]; then
     . etc/FaxNotify
 fi
 
+if [ -f etc/templates/$TEMPLATE/hook.sh ]
+then
+    # Any hooks that the templates need
+    . etc/templates/$TEMPLATE/hook.sh
+fi
 
 
 if [ -n "$RETURNFILETYPE" ]; then
index b8f7c86c92a4da9c91be6f9a16a6870153cbd663..d681d64e87168d28d99c51129bf0513bbfe70dc6 100644 (file)
@@ -131,6 +131,12 @@ if [ -f etc/PollDispatch ]; then
     . etc/PollDispatch       # NB: PollDispatch allows customization
 fi
 
+if [ -f etc/templates/$TEMPLATE/hook.sh ]
+then
+    # Any hooks that the templates need
+    . etc/templates/$TEMPLATE/hook.sh
+fi
+
 ## TemplateName <type>
 ## Return the pollrcvd template name for <type>
 ## Fallback to faxrcvd if pollrcvd template is unavailable