int rc;
int c;
- while ((c = Sys::getopt(argc, argv, "Ca:d:h:k:m:n:P:t:ADQRgprv")) != -1)
+ while ((c = Sys::getopt(argc, argv, "Ca:d:h:k:m:n:O:P:t:ADQRgprv")) != -1)
switch (c) {
case 'C':
errorexit = false;
script.append("\n");
}
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'p': // send now (push)
script.append(groups ? "JGPARM " : "JPARM ");
script.append("SENDTIME NOW\n");
readConfig(FAX_LIBDATA "/faxmail.conf");
readConfig(FAX_USERCONF);
- while ((c = Sys::getopt(argc, argv, "12b:cC:df:H:i:M:nNp:rRs:t:Tu:vW:")) != -1)
+ while ((c = Sys::getopt(argc, argv, "12b:cC:df:H:i:M:nNO:p:rRs:t:Tu:vW:")) != -1)
switch (c) {
case '1': case '2': // format in 1 or 2 columns
setNumberOfColumns(c - '0');
case 'N':
formatEnvHeaders = false;
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'p': // point size
setTextPointSize(TextFormat::inch(optarg));
break;
bool docs = false;
bool useadmin = false;
- while ((c = Sys::getopt(argc, argv, "ah:dv")) != -1)
+ while ((c = Sys::getopt(argc, argv, "ah:dO:v")) != -1)
switch (c) {
case 'a':
useadmin = true;
case 'h': // server's host
setHost(optarg);
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'v':
setVerbose(true);
break;
dirs.append(FAX_STATUSDIR); // server status
bool checkInfo = false;
int c;
- while ((c = Sys::getopt(argc, argv, "h:adgfilrsv")) != -1)
+ while ((c = Sys::getopt(argc, argv, "h:adgfilO:rsv")) != -1)
switch (c) {
case 'a': // display archived jobs
dirs.append(FAX_ARCHDIR);
case 'l': // use local timezone for dates & times
setTimeZone(TZ_LOCAL);
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'r': // display receive queue
dirs.append(FAX_RECVDIR);
break;
.SH SYNOPSIS
.B faxalter
[
+.B \-O
+.I config
+] [
.I options
]
.IR id ...
.I modem
causes the jobs to be scheduled for any available modem.
.TP 10
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP 10
.B \-p
The jobs should be
.IR pushed ;
.SH SYNOPSIS
.B faxmail
[
+.B \-O
+.I config
+] [
.I options
] [
.I destination
.B \-N
Suppress formatting of mail envelope headers.
.TP 10
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP 10
.BI \-p " size"
Set all text using
.I size
] [
.B \-d
] [
+.B \-O
+.I config
+] [
.B \-v
] [
.B \-h
If all of the above fails, then
.I faxrm
attempts to contact a server on the machine where it is run.
+.TP 10
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
.TP
.B \-v
Trace the protocol messages to and from the server.
.SH SYNOPSIS
.B faxstat
[
+.B \-O
+.I config
+] [
.I options
]
.SH DESCRIPTION
string defines the content and format of information reported with
this option (see below).
.TP 10
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP 10
.B \-s
Display the status of jobs in the send queue on the server machine.
The
.SH SYNOPSIS
.B sendfax
[
+.B \-O
+.I config
+] [
.I options
] [
.IR files ...
If neither is specified, the user's
current login name is used.
.TP 12
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP 12
.B \-p
Poll each destination for any available documents.
If a poll request is made together with document transmission, the
.SH SYNOPSIS
.B sendpage
[
+.B \-O
+.I config
+] [
.I options
] [
.IR message ...
This option is meaningful only when communicating with a
\*(Fx server.
.TP 12
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP 12
.BI \-p " PIN"
The Pager Identification Number (\s-1PIN\s+1) for a terminal
that is to receive the message.
.SH SYNOPSIS
.B ${LIBEXEC}/textfmt
[
+.B \-O
+.I config
+] [
.I options
] [
.IR files ...
Draw an outline around each column of text; the specified number
defines the width of the line that is drawn.
.TP
+.BI \-O " config"
+Treat
+.I config
+as a configuration parameter specification that is interpreted
+after reading the configuration file.
+For example, ``\-O Host:fax.example.com'' would set the
+.B Host
+configuration parameter to ``fax.example.com'', overriding any setting in
+the configuration file.
+.TP
.BI \-p " pts"
Set text using fonts with
.I pts
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:o:P:r:s:S:t:T:U:V:W:x:X:y:Y:z:Z:123lmnpvwADEGNR")) != -1) {
+ while ((c = Sys::getopt(argc, argv, "a:b:B:c:C:d:f:F:h:i:I:k:M:o:O:P:r:s:S:t:T:U:V:W:x:X:y:Y:z:Z:123lmnpvwADEGNR")) != -1) {
if (c != 'h')
optionsUsed = false;
switch (c) {
case 'o': // specify owner
owner = optarg;
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'p': // submit polling request
addPollRequest();
break;
fxStr emsg;
bool noText = false; // default is to assume message text
SNPPJob& proto = getProtoJob();
- while ((c = Sys::getopt(argc, argv, "a:De:f:h:i:I:l:nNp:qRs:t:T:v")) != -1)
+ while ((c = Sys::getopt(argc, argv, "a:De:f:h:i:I:l:nNO:p:qRs:t:T:v")) != -1)
switch (c) {
case 'a': // time at which to transmit page
if (!proto.setHoldTime(optarg, emsg)) {
case 'N': // no notification
proto.setNotification("none");
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'p': // PIN
addJob().setPIN(optarg);
break;
fxStr op = "RETR ";
u_int mode = MODE_S;
u_long page = 0;
- while ((c = Sys::getopt(argc, argv, "h:o:p:svz")) != -1)
+ while ((c = Sys::getopt(argc, argv, "h:o:O:p:svz")) != -1)
switch (c) {
case 'h': // server's host
setHost(optarg);
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'p': // retrieve page
op = "RETP ";
page = atol(optarg);
readConfig(FAX_SYSCONF);
readConfig(FAX_USERCONF);
- while ((c = Sys::getopt(argc, argv, "gh:lv")) != -1)
+ while ((c = Sys::getopt(argc, argv, "gh:lO:v")) != -1)
switch (c) {
case 'g':
setTimeZone(TZ_GMT);
case 'l':
setTimeZone(TZ_LOCAL);
break;
+ case 'O':
+ readConfigItem(optarg);
+ break;
case 'v': // verbose mode
setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
FaxClient::setVerbose(true);// protocol tracing
fmt.readConfig(FAX_USERCONF);
prog = argv[0];
- while ((c = Sys::getopt(argc, argv, "f:F:m:M:o:p:s:V:12BcDGrRU")) != -1)
+ while ((c = Sys::getopt(argc, argv, "f:F:m:M:o:O:p:s:V:12BcDGrRU")) != -1)
switch(c) {
case '1': // 1-column output
case '2': // 2-column output
case 'o': // outline columns
fmt.setOutlineMargin(TextFormat::inch(optarg));
break;
+ case 'O':
+ fmt.readConfigItem(optarg);
+ break;
case 'p': // text point size
fmt.setTextPointSize(TextFormat::inch(optarg));
break;