![]() |
Its possible to set the Modem Local Identifier from faxmail?? Like the '-S tsi' from the sendfax command?
diff -Nru hylafax.orig/faxmail/faxmail.c++ hylafax/faxmail/faxmail.c++ --- hylafax.orig/faxmail/faxmail.c++ 2007-05-09 09:13:29.000000000 -0700 +++ hylafax/faxmail/faxmail.c++ 2007-05-10 18:24:05.507765896 -0700 @@ -80,6 +80,7 @@ fxStr coverTempl; // coverpage template file fxStr mailUser; // user ID for contacting server fxStr notify; // notification request + fxStr tsi; // user-specified TSI string bool autoCoverPage; // make cover page for direct delivery bool formatEnvHeaders; // format envelope headers bool trimText; // trim text parts @@ -142,7 +143,7 @@ readConfig(FAX_USERCONF); bool deliver = false; - 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:nNp:rRs:S:t:Tu:vW:")) != -1) switch (c) { case '1': case '2': // format in 1 or 2 columns setNumberOfColumns(c - '0'); @@ -190,6 +191,9 @@ pageSize = optarg; setPageSize(pageSize); break; + case 'S': // set TSI + tsi = optarg; + break; case 't': // job state notification request notify = optarg; break; @@ -270,6 +274,10 @@ job->setNotification((const char*) notify); } + if (tsi != "") { + job->setTSI((const char*) tsi); + } + /* * Scan envelope for any meta-headers that * control how job submission is to be done. @@ -743,6 +751,7 @@ pageSize = ""; mailUser = ""; // default to real uid notify = ""; + tsi = ""; coverTempl = ""; autoCoverPage = true; // a la sendfax formatEnvHeaders = true; // format envelope headers by default diff -Nru hylafax.orig/man/faxmail.1 hylafax/man/faxmail.1 --- hylafax.orig/man/faxmail.1 2007-05-09 09:13:29.000000000 -0700 +++ hylafax/man/faxmail.1 2007-05-10 20:26:11.487047760 -0700 @@ -408,6 +408,10 @@ substring of the full page-size name is sufficient; e.g. ``legal'' would match ``American Legal''. .TP 10 +.BI \-S " tsi" +Pass tsi to the server as the suggested sender identification to be +used, for example, in tagline imaging and fax protocol. +.TP 10 .BI \-t " when" Notify the sender of job status according to .IR when .