. 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
. 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
. 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