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] Bizzarre Question



I've solved the problem myself.

For the archives:

c2faxsend parses -c lines just like they came straight out of the
config.faxCapi file.

So to get spaces to parse properly you need to provide literal quotes

eg c2faxsend -c LocalIdentifier:"\"My Company Name\"" -m faxCAPI sendq/q18

If you're calling it from a wrapper script like I was you need to do even
more escaping to pass the literal quotes.

It will also baulk on the following characters:

[]{}=:,-#

Hope this info helps

Regards,

Kimble Young

-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx]On Behalf Of Matt
Sent: Thursday, July 15, 2004 6:00 AM
To: hylafax
Subject: Re: [hylafax-users] Bizzarre Question


> I know this question is likely to raise a few "Why" eyebrows but I need
> to ask.
>
> It is capi4hylafax related so anyone who doesnt like those types of
> questions should just close this email now.
>
> I've written a wrapper for c2faxsend which queries a DB to find out
> which LocalIdentifier and FAXNumber to append as an argument for
> c2faxsend.  The problem is anything after a space in these arguments is
> ignored.  How can I get c2faxsend to recognise them?
>
> For example:
>
> c2faxsend -c "LocalIdentifier:My Company Name" -m faxCAPI sendq/q18
>
> When the fax comes through all I see on the tagline is "My".
>
> I've tried quoting using '',"" and \ the spaces and the only thing
> that's changed is "My" now comes out as "My\".
>
> I'm using the capi4hylafax from avm as it seems the most up to date.
>

 Have you tried the quotes after the LocalIdentifier, i.e :

LocalIdentifier:"My Company Name"

 No idea if it will make any difference, but worth a try ;-)

Matt



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



____________________ 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