HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] notify email modification help



I answered my own question, but here for the benefit of others... hope
this helps someone


I modified line 650 in the notify script
[root@hylafax bin]# diff /var/spool/hylafax/bin/notify
/var/spool/hylafax/bin/notify.orig
650c650
<       notify_mail "$jobtag $DICTTO $DESTINATION re: $regarding
$DICTCOMPLETED" "$mailaddr";;
---
>       notify_mail "$jobtag $DICTTO $DESTINATION $DICTCOMPLETED" "$mailaddr";;
[root@hylafax bin]#


it would seem that any element in the doneq log file is accessable via
just putting a $ in front of the variable.

cat through a doneq file and youll see some variables you can use...
[root@hylafax bin]# cat /var/spool/hylafax/doneq/q
q100  q104  q108  q112  q116  q120  q124  q128  q132  q136  q140







On Thu, Aug 28, 2008 at 8:04 AM, Mike Brentlinger
<msbrentlinger@xxxxxxxxx> wrote:
> Greetings all, I have HylaFAX (tm) Version 5.2.7 from
> hylafax-5.2.7-1.fc9.i386.rpm installed on Fedora release 9 (Sulphur)
> 2.6.25-14.fc9.i686
>
> Im in a position where I need to modify the notify emails that are
> sent to users when a job is sent using the sendfax command.
>
> Users would like their "regarding" string (the -r arg from sendfax)
> added into the subject line of the email that comes to them.
>
> For example..
> If I did the folowing to sed a fax
>
>   sendfax                                       \
>   -C /var/spool/hylafax/etc/c.ps        \
>   -f mikbrent@xxxxxxxxxxxx           \
>   -r 'testfax'                                     \
>   -d 'Recipient@9,123-4567'             \
>   /var/spool/hylafax/attachment
>
>
> Id want:
>
> From:   uucp <fax@hylafax>
> To:     <mbrentlinger@xxxxxxxxxxxxxx>
> Date:   8/5/08 8:20AM
> Subject:        facsimile job 24 to 9,123-4567 regarding: testfax completed
> Your facsimile job to 9,123-4567  was completed successfully.
>    .....
>
>
> But currently I get:
>
> From:   uucp <fax@hylafax>
> To:     <mbrentlinger@xxxxxxxxxxxxxx>
> Date:   8/5/08 8:20AM
> Subject:        facsimile job 24 to 9,123-4567 completed
> Your facsimile job to 9,123-4567  was completed successfully.
> .....
>
>
>
>
> Google searches havent lead me very far, but from some snooping and
> grepping around Im guessing Ill need to fool with the notify_mail()
> function in
> /var/spool/hylafax/bin/notify
>
> Or perhaps make a custom
> /var/spool/hylafax/etc/FaxNotify
>
> or even fool with
> /var/spool/hylafax/bin/common-functions
>
> Im just not certain, and was hoping someone may have done this or
> soemthing similar already and would be kind enough to point me in the
> right direction
>
> Any help would be greatly appreciated. Thanks in advance.
>
> -Mike
>


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




Project hosted by iFAX Solutions