Re: Archiving the tagline of sent faxes in TagLine.c++ or in Class1Send.c++

"Patrice Fournier" <[email protected]>
Newsgroups gmane.comp.telephony.fax.hylafax.devel
Message-ID <[email protected]>
$$Quoting "Davis Desormeaux" <[email protected]>:

> Hi, I’m trying to get the final buffer generated by TagLine.c++ (  
> imageTagLine() ) written to a file. I need this for legal reasons. I  
> need a copy of what is originally sent by hylafax and this requires  
> the TagLine on each archived faxes. (The ps and pdf files in the  
> docq doesn’t have the tagline). So basically, right after the line  
> in Class1Send.c++ (around line 1801) where the tagline is imaged I’m  
> trying to get the final result in a file.
>
> I actually wrote the content of the ‘dp’ ( in the code we have ‘dp =  
> imageTagLine( … )’ ) variable to a file using fopen() & fprintf but  
> I must be doing something wrong because I cannot get the file format  
> correct.
>
> So here is my question: How can I write the content of dp (which I  
> think contains the data being sent) to a file. Is this encoded in  
> mmr? Is this a ‘.fax’?
> This is how I write the file. I added this right after the dp =  
> imageTagline( … ) :
>
> fp=fopen("/tmp/test.fax", "w");
> fprintf(fp, "%s", dp);
> fclose(fp);
>
> Anyone can point me what I’m doing wrong? Is there a function in  
> libfaxserver where I could pass 'dp' and it would convert it to a  
> tiff or something?

If you look a bit lower in that file, there is a saverawimage config  
option that is checked and if set does write the image data to  
"/tmp/out.fax". Just setting saverawimage to true should enable this  
(if using a recent enough version of HylaFAX).

This option exists for debugging purpose so the filename is not  
configurable in current versions, you may have to change this  
especially if you run multiple modems simultaneously.



-- 
Patrice Fournier
iFAX Solutions, Inc.
www.ifax.com


____________________ HylaFAX(tm) Developers Mailing List ____________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe [email protected] < /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.