Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hylafax-users] NOTIFY_FAXMASTER=errors|"errors"|error does not seem to work

40 views
Skip to first unread message

Mona Meyer

unread,
Jun 1, 2016, 1:38:26 AM6/1/16
to hylafax-users
I made a fresh install of hylafax 6.0.6-5 with iaxmodem 1.2.0 on ubuntu
14.04.

As mentioned in http://www.hylafax.org/man/current/notify.1m.html I created
a file /etc/hylafax/FaxNotify with

RETURNFILETYPE=pdf
TEMPLATE=de
NOTIFY_FAXMASTER=errors

But even if no error occur ("Notification of facsimile (...): done) the
faxmaster _always_ gets a notfication email. I also tried

NOTIFY_FAXMASTER=error
and
NOTIFY_FAXMASTER="error"
and
NOTIFY_FAXMASTER="errors"

but the faxmaster keeps getting e-mails.

Can somebody give me a hint?

Giuseppe Sacco

unread,
Jun 1, 2016, 3:47:08 AM6/1/16
to Mona Meyer, hylafax-users
Hello Mona,
the correct assignment is NOTIFY_FAXMASTER=errors. If you receive
messages for every fax, maybe this is because you used the same address
when submitting the fax.

On Debian and Ubuntu, when you change FaxNotify you should also restart
hylafax in order to re read it.

Bye,
Giuseppe

Giuseppe Sacco

unread,
Jun 1, 2016, 10:42:47 AM6/1/16
to hylafa...@hylafax.org
Il giorno mer, 01/06/2016 alle 09.46 +0200, Giuseppe Sacco ha
scritto:[...]
> On Debian and Ubuntu, when you change FaxNotify you should also
> restart hylafax in order to re read it.

sorry, this is not true: the file is read when the notify script is
executed.

Bye,
Giuseppe


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*

Mona Meyer

unread,
Jun 2, 2016, 3:25:39 PM6/2/16
to hylafa...@hylafax.org
Giuseppe Sacco <giuseppe <at> eppesuigoccas.homedns.org> writes:

> Hello Mona,
> the correct assignment is NOTIFY_FAXMASTER=errors.

My File /etc/hylafax/FaxNotify has three lines:
RETURNFILETYPE=pdf
TEMPLATE=de
NOTIFY_FAXMASTER=errors

The first two lines are obviously working: After sending a fax, the user
gets an email in german with the faxed document attached as pdf.

> If you receive messages for every fax, maybe this is because you used the
> same address when submitting the fax.

No, no matter which user sends a fax, there are always _two_ emails sent:
One in german to the sending user, and another in english to the FaxMaster.

Frank Mayer

unread,
Jun 4, 2016, 8:50:12 AM6/4/16
to hylafax-users
I have the same Problem. hylafax 6.0.5 on Debian wheezy. I had to disable notifications at all:


NOTIFY_FAXMASTER=never


Matthias Stadelmeyer

unread,
Jun 5, 2016, 8:23:48 AM6/5/16
to hylafa...@hylafax.org
Mona Meyer <meymona <at> gmail.com> writes:

> My File /etc/hylafax/FaxNotify has three lines:
> RETURNFILETYPE=pdf
> TEMPLATE=de
> NOTIFY_FAXMASTER=errors
>
> The first two lines are obviously working: After sending a fax, the user
> gets an email in german with the faxed document attached as pdf.
>
> No, no matter which user sends a fax, there are always _two_ emails sent:
> One in german to the sending user, and another in english to the
FaxMaster.
>

I think there is indeed something wrong with the script.

After a job is successfully submitted, syslog shows the script "notify"
executed as follows:

NOTIFY: bin/notify "doneq/q17" "done" "0:00:46"

In /var/spool/hylafax/bin/notify "WHY" is therefore set to "done":
line 55: WHY=$2

But to avoid a second message to faxmaster in case of a success "WHY" should
have been set to "success":

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

So it seems that you hust have to change "errors:success" to "errors:done".
But who knows wheter someting else depends on the origin setting.

Lee Howard

unread,
Jun 5, 2016, 12:12:17 PM6/5/16
to Matthias Stadelmeyer, hylafa...@hylafax.org
This has been a long-standing issue in the hylafax.org releases ever
since v4.3.1 (2006) was released where NOTIFY_FAXMASTER support was
apparently inadvertently removed altogether in a rewrite of many parts
of the notify script to accommodate templating.

NOTIFY_FAXMASTER support was reintroduced in v6.0.0 (2009), but the
"errors:success" mistake has been there ever since. Yes, it should read
"errors:done". It seems like this bug has been reported on multiple
occasions before in the last 7 years, but I could be wrong.

Hopefully somebody will take note of this report and will see it fixed
in the code repository for an eventual v6.0.7 release, but mind-you, the
v6.0.6 release was 4 years ago. I suspect that many just switch to
using HylaFAX+ rather than waiting for hylafax.org releases.

Thanks,

Lee.


On 06/05/2016 05:23 AM, Matthias Stadelmeyer wrote:

Giuseppe Sacco

unread,
Jun 8, 2016, 3:48:56 AM6/8/16
to hylafa...@hylafax.org
Hello Matthias,
I checked http://bugs.hylafax.org/ and cound not find any open or
closed bug about this problem.

Could you please open a bug report against hylafax for the problem you
found? In the meantime, I suggest to add a new case switch with 

  "errors:done") ;; # Not errors

just after the "errors:success" line.

Hylafax developers will check for your solution and should be able to
fix it in a future version. Just do not expect a new immediate
release...

Thanks,
Giuseppe
0 new messages