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] THIS IS THE RIGHT PATCH: "faxmail -d" vs. X-FAX-Dialstring




AARGH! Sorry, my fault, I was sleeping!

This is the patch I intended to post (I hope ¦-o

BEGIN PATCH ----------------------------------------------------------
--- ../../hylafax-4.1.5/faxmail/faxmail.c++     Sat Sep 16 13:13:51 2000
+++ faxmail.c++ Thu Feb 20 16:50:02 2003
@@ -230,8 +230,16 @@
              job->setDialString(dest);
          }
          const fxStr* s;
-       if (s = findHeader("x-fax-dialstring")) // dialstring in envelope
-           job->setDialString(*s);
+       if (s = findHeader("x-fax-dialstring")) {       // dialstring in
envelope
+               fxStr dialstr;
+               dialstr = s->copy();
+           u_int l = dialstr.next(0, '@');
+           if (l != dialstr.length()) {
+                       job->setCoverName(dialstr.head(l));
+                       dialstr.cut(0, l+1);
+           }
+           job->setDialString(dialstr);
+       }
          if (job->getDialString() == "")
              fxFatal("No Destination/Dialstring specified");

END PATCH ------------------------------------------------------------

HTH, flames exceptionally welcome :-))

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




Project hosted by iFAX Solutions