Hylafax Mailing List Archives

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

[hylafax-users] CAPI and tagline



For those of you working with capi4hylafax:

When sending Faxes with c2faxsend, the usual TagLineFormat configuration
is not supported. You can only set a fixed variable (LocalIdentifier) in
config.faxCAPI. So in order to get dynamic Taglines on a per job base I
wrote a little wrapper script which will overwrite the LocalIdentifier
string.

Just use 
sendfax -i "this is my tagline" <other args>
to send a fax and have the LocalIdentifier variable overwritten with
"this is my tagline".

-------------------------------------------------------------
#!/bin/sh

# name it c2sendfax.wrap and place it with rx permissions for
uucp:dialout
# under /usr/local/bin
# don't forget a line in /var/spool/hylafax/config
# SendFaxCmd:             "/usr/local/bin/c2faxsend.wrap"

eval QFILE=\$$#

TAGLINE=`grep jobtag $QFILE | sed s/jobtag://`

# path to c2faxsend cmd might be different for you
/usr/bin/c2faxsend -v -c LocalIdentifier:"\"$TAGLINE\"" $@ 

rc=$?

exit $rc
-------------------------------------------------------------

regards
Moritz


____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services