HylaFAX The world's most advanced open source fax server

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

Re: Re: Notify



Moin!

aeh0001@ibm.net schrieb:
> 
> This is second sending, has anybody got any ideas..
> 
> On Thu, 4 Jun 1998 dexter@aehf50.mail wrote:
> 
> >
> > Hello,
> >
> > Can someone pls help me. I am trying to configure ~/notify.awk to send the
> > ~/sendq/faxfile* as confirmation back to the sender, not just the transcript.


I'm not sure, but i think you would like to send the file
~/doc/docXXXX.XXX. This is "files[i]" in the notify.awk script


> >
> > Is there any way I can do this I have tried doing the following but it does
> > not send the file to the sender only "THE FAX ITSELF FOLLOWS..". I am running
> > HylaFAX v4.0pl0 on AIX4.2.1.
> >
> >       if (status != "")
> >           print "  Additional information:\n    " status;
> >           print "\nTHE FAX ITSELF FOLLOWS..."
> >           while (getline <spoolfile)
> >               print $0
> >     } else if (why == "failed") {
> >       putHeaders(jobtag " to " number " failed");
> >       printf " failed because:\n    ";
> >       printStatus(status);
> >           print "THE FAX ITSELF FOLLOWS...\n"
> >           while (getline < spoolfile)
> >               print $0
> > #     returnTranscript(pid, canon);
> > #     returnToSender();


So you should use something like

for (i = 0; i < nfiles; i++) {
	while (getline < files[i])
		print $0    
 }

instead of "spoolfile" - at my system
"spoolfile" is no defined - or missed i something ?
(I'm not very well in programing awk and i've not tested
this script so it might not work - just a little hint.)
Also I'm not sure that it makes sense to send the fax-doc in
this way - multi-part mime-mails would by better. If the
doc is plain text or PS it might work, but with tiff-files
the returned mail would look rather ugly.

What about sending the name of the fax-doc as an hyperlink
for your webbrowser ? (like when receiving facsimile)


> >
> > Many thanks,
> > Dexter Adams


Michael

-- 
Michael Möller                    A. Heinemann Heide GmbH & Co.KG
Unix-Systemadministrator          Technische Gebäudeausrüstung
moeller.heinemann@t-online.de     Süderdamm 5, 25746 Heide, Germany
D2:0172/4576755  Fax:05334/7485 oder 0481/87654  Tel.:0481/8571-0




Project hosted by iFAX Solutions