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] Feature request: build fax send confirmation into document



Max Mothwurf wrote:

Am Montag 26 Februar 2007 schrieb Lee Howard:



Potential solution could be to build a similar confirmation, for example
basing on the first page of the sended document. In the top-section all
relevant information could be printed (maybe customizable), and this can
be mailed additional to the whole document back to the sender of the fax.

Would that be feasible?


You could do all of this in FaxNotify or a modified notify script, yes.



and how could this be done?



Here is what I wrote to someone else:


Well, in notify and FaxNotify (at least those found in HylaFAX+) the first document sent is called $files_1 and it's file-type will be $filetype_1. The actual text to be used for the confirmation message is entirely up to you, however, the text creation of the default email is found in the notify_mail() function that you'll find up at the top.

So the rest is really an excersize in shell scripting (or whatever else you prefer to use) ... taking $files_1 of type $filetype_1 and the confirmation text of your choosing and producing a confirmation page appropriate for your needs.

I would suggest, perhaps, converting the $files_1 into TIFF, using tiff2ps without the -a option to get yourself the first page, watermarking the confirmation text ontop of it with psmark and then modifying notify_mail() to attach *that* file instead of the sent documents.

Lee.

____________________ 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