Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Patch to allow the entry of a voice number into sendfax
- To: flexfax@sgi.com
- Subject: flexfax: Patch to allow the entry of a voice number into sendfax
- From: Damian Ivereigh <damian@cisco.com>
- Date: Wed, 15 Jul 1998 12:35:14 +1000
Here is a patch that allows the entry of a voice number into sendfax
that will appear on the cover page. The option used is '-V'. I hope the
patch is the right way round (if not use the -R). Amazingly all the code
seemed to be already there - it just needed turning on!
The patch requires you be in the sendfax directory
Damian
--
______________________________________________________________________
* Damian Ivereigh * || || * Cisco Systems, Inc. *
* MIS Printer Admin * .||||. .||||. * 408-526-4413 *
* Linux Bigot * ..:||||||:..:||||||:.. * 800-800-1180 x64413 *
* damian@cisco.com * cisco Systems, Inc. * Fax: 408-527-2563 *
*______________________________________________________________________*Index: man/sendfax.1
===================================================================
RCS file: /usr/local/cvsroot/source/hylafax/man/sendfax.1,v
retrieving revision 1.1
diff -c -r1.1 sendfax.1
*** sendfax.1 1998/07/01 21:50:46 1.1
--- sendfax.1 1998/07/14 19:36:12
***************
*** 515,520 ****
--- 515,527 ----
protocol is commenced; this is contrasted with a call
attempt that might have failed because the line was busy.
.TP 12
+ .BI \-V " voice-no"
+ Pass
+ .I voice-no
+ to the
+ .IR faxcover (1)
+ program as the destination person's voice number.
+ .TP 12
.BI \-x " company"
Pass
.I company
Index: sendfax/sendfax.c++
===================================================================
RCS file: /usr/local/cvsroot/source/hylafax/sendfax/sendfax.c++,v
retrieving revision 1.1
diff -c -r1.1 sendfax.c++
*** sendfax.c++ 1998/07/01 21:50:45 1.1
--- sendfax.c++ 1998/07/14 19:36:12
***************
*** 87,93 ****
int verbose = 0;
SendFaxJob& proto = getProtoJob();
db = new FaxDB(tildeExpand(dbName));
! while ((c = Sys::getopt(argc, argv, "a:b:B:c:C:d:f:F:h:i:I:k:M:P:r:s:t:T:x:y:12lmnpvwDENR")) != -1)
switch (c) {
case '1': // restrict to 1D-encoded data
proto.setDesiredDF(0);
--- 87,93 ----
int verbose = 0;
SendFaxJob& proto = getProtoJob();
db = new FaxDB(tildeExpand(dbName));
! while ((c = Sys::getopt(argc, argv, "a:b:B:c:C:d:f:F:h:i:I:k:M:P:r:s:t:T:V:x:y:12lmnpvwDENR")) != -1)
switch (c) {
case '1': // restrict to 1D-encoded data
proto.setDesiredDF(0);
***************
*** 178,183 ****
--- 178,186 ----
setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
SendFaxClient::setVerbose(TRUE); // type rules & basic operation
FaxClient::setVerbose(verbose > 1); // protocol tracing
+ break;
+ case 'V': // cover sheet: voice number field
+ proto.setCoverVoiceNumber(optarg);
break;
case 'w': // wait for job to complete
waitForJob = TRUE;