HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] PATCH: "faxmail -d" vs. X-FAX-Dialstring
Hi HylaFAX users,
Here is a small patch against faxmail/HylaFAX 4.1.5 to make "faxmail -d"
and "X-FAX-Dialstring" behave the same:
BEGIN PATCH ----------------------------------------------------------
--- faxmail.c++.ORI Sat Sep 16 13:13:51 2000
+++ faxmail.c++ Tue Feb 18 16:53:59 2003
@@ -231,6 +231,11 @@
}
const fxStr* s;
if (s = findHeader("x-fax-dialstring")) // dialstring in envelope
+ u_int l = *s.next(0, '@');
+ if (l != *s.length()) {
+ job->setCoverName(*s.head(l));
+ *s.cut(0, l+1);
+ }
job->setDialString(*s);
if (job->getDialString() == "")
fxFatal("No Destination/Dialstring specified");
END PATCH ------------------------------------------------------------
HTH, comments welcome,
Maurice
PS: See my previous (unsuccesful :-) posting below:
----------------------------------------------------------------------
Hi there,
Does anyone have an idea why:
'faxmail -d "John Doe@5551234"'
can extract "John Doe" as the recipient and 5551234 as the fax number to
call, whereas:
'X-FAX-Dialstring: "John Doe@5551234"'
is interpreted as a number and translated according to the dialrules ???
It is confirmed by a look at the C++ code where, in the file
faxmail.c++, one can read:
const fxStr* s;
if (s = findHeader("x-fax-dialstring")) // dialstring in envelope
job->setDialString(*s);
???!
Maurice
----------------------------------------------------------------------
Maurice Galland maurice.galland@kariboo.com
Kariboo Technologies SA Tel: +41 21 641 05 50
Chemin de la Forêt 4 Fax: +41 21 641 05 52
1018 Lausanne - Switzerland
____________________ 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@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*