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] How To Change details on confirmation email
Hi Chris
Thanks for your lengthy reply, its much appreciated.
I found out that the bit i needed to change was in the fax users descriptive name, by editing the /etc/passwd file to the name i wanted sorted my problem....(thanks go to Pedro Rocadas for this).
Matt
-----Original Message-----
From: Chris Gamache [mailto:cgg007@yahoo.com]
Sent: 12 November 2001 12:55
To: matt@artemisci.com
Subject: Re: [hylafax-users] How To Change details on confirmation email
Been struggling with notify.awk myself. Here's what I know. If someone
(anyone!) knows anything different, feel free to join in the fray!
bin/notify.awk is spawned by the bin/notify shell script, which is called after
a fax attempt is made, successful or un. The data that you get inside your
email comes from the jobfile in doneq/doc###, ### is the jobnumber. There's a
section in notify.awk that looks like...
/^jobid/ { jobid = $2; }
/^groupid/ { groupid = $2; }
/^state/ { state = $2+0; }
/^doneop/ { doneop = $2; }
/^number/ { number = $2; }
etc...
That's where a variable gets set. Its a regular expression that takes a line in
the doneq/doc### file starting with "whatever" and puts it into "variable" like
this...
/^whatever/ { variable = $2; }
If the data you want can be found anywhere in the doneq/doc###, then you can
have it, otherwise you'll have to snag it from some other source and really
hack on the script file.
BTW: if you want to print it out, find the section of the awk file that
corresponds to the message you want to edit (i.e. successful fax, unsuccessful
fax...) and place a line
printItem("%s", "WhatEver", variable);
Anything more than just printing the data (calculations, etc.), you'll have to
get into awk and code it. If you code, it shouldn't be hard. The real trick is
to find the piece of data in that doneq/doc### file (or some other file...) and
put it where you want it.
I've been TRYING to get the Company Name from the faxcover into my emails, but
can't figure it out. I haven't got a response from my question posts yet. :)
Hope this lengthy explanation helps some more...
CG
--- Matthew Hale <matt@artemisci.com> wrote:
> Thanks Andreas
>
> I have edited this file but still called find where it puts the Sender name
> as "Facsimile Agent", can you be more specific as to where I should look
> within the file, I have done a text string search for this in both the notify
> and notify.awk files and could not find it, maybe its an environment
> variable?
>
> Matt
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null