Do not notify faxmaster on succesful outbound job
Luca <[email protected]> Mon, 4 Apr 2016 16:17:09 +0200
| Newsgroups | gmane.comp.telephony.fax.hylafax.user |
|---|---|
| Message-ID | <CA+t0X5fygzzvB_Sf9tJZfbsO57=v02ix7eFjaaFBrUpuiXzTLg@mail.gmail.com> |
I've set:
NOTIFY_FAXMASTER=errors
in FaxNotify but I still receive notification on successful job.
Watching bin/notify code I saw:
case "$NOTIFY_FAXMASTER:$WHY" in
"always:"*) do_faxmaster;;
"yes:"*) do_faxmaster;;
"errors:success") ;; # Not errors
"errors:blocked") ;; # Not errors
"errors:"*) do_faxmaster;; # errors
*) ;; # Do nothing;
esac
Since $WHY is equal to "done" when a facsimile is correctly sent,
shouldn't the 4th line be:
"errors:done") ;; # Not errors
? `man notify` doesn't not list "success" as possible value, while it
lists "done", "blocked", and many others.
PS: It seems there's no difference, in NOTIFY_FAXMASTER, between "no"
and "never" or between "yes" and "always", am I right?
Thanks.
Luca
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe [email protected] < /dev/null
*To learn about commercial HylaFAX(tm) support, mail [email protected].*