fxStr fromVoiceNumber; // sender's voice number
fxStr fromLocation; // sender's geographical location
fxStr fromCompany; // sender's company/institution
+ fxStr fromMailAddr; // sender's email address
fxStr regarding; // fax is regarding...
fxStr comments; // general comments
fxStr sender; // sender's identity
cover = cp;
setupPageSize("default");
- while ((c = Sys::getopt(argc, argv, "C:D:L:N:V:X:n:t:f:c:p:l:m:r:s:v:x:z:")) != -1)
+ while ((c = Sys::getopt(argc, argv, "C:D:L:M:N:V:X:n:t:f:c:p:l:m:r:s:v:x:z:")) != -1)
switch (c) {
case 's': // page size
setupPageSize(optarg);
case 'L': // sender's geographic location
fromLocation = optarg;
break;
+ case 'M': // sender's email address
+ fromMailAddr = optarg;
+ break;
case 'N': // sender's fax number
fromFaxNumber = optarg;
break;
" [-C template-file]"
" [-D date-format]"
" [-L from-location]"
+ " [-M from-mail-address]"
" [-N from-fax-number]"
" [-V from-voice-number]"
" [-X from-company]"
fromLocation = rec->find("Location");
fromFaxNumber = rec->find(FaxDB::numberKey);
fromVoiceNumber = rec->find("Voice-Number");
+ fromMailAddr = rec->find("Mail-Address");
fxStr areaCode(rec->find("Area-Code"));
if (areaCode != "") {
if (fromFaxNumber != "")
coverDef("from-voice-number",fromVoiceNumber);
coverDef("from-company", fromCompany);
coverDef("from-location", fromLocation);
+ coverDef("from-mail-address", fromMailAddr);
}
void
fxStr FaxDB::companyKey("Company");
fxStr FaxDB::locationKey("Location");
fxStr FaxDB::phoneKey("Voice-Number");
+fxStr FaxDB::mailAddrKey("Mail-Address");
FaxDBRecord*
FaxDB::find(const fxStr& s, fxStr* name)
static fxStr locationKey;
static fxStr phoneKey;
static fxStr companyKey;
+ static fxStr mailAddrKey;
FaxDBRecord* find(const fxStr& pat, fxStr* name = 0);
FaxDBRecord* operator[](const fxStr& name);
addarg(av, ac, "-D", dateFormat);
addarg(av, ac, "-c", job.getCoverComments());
addarg(av, ac, "-f", senderName);
+ addarg(av, ac, "-M", job.getMailbox());
addarg(av, ac, "-l", job.getCoverLocation());
addarg(av, ac, "-n", job.getExternalNumber());
addarg(av, ac, "-r", job.getCoverRegarding());
\fIto-location\fP destination geographic location \fIfrom-location\fP sender geographic location
\fIto-voice-number\fP person's voice phone number \fIfrom-voice-number\fP sender's voice phone number
\fIto-fax-number\fP destination fax phone number \fIfrom-fax-number\fP sender's fax phone number
+\fI\fP \fIfrom-mail-address\fP sender's e-mail address
\fIcomments\fP unbroken comment string \fIcommentsX\fP \fI\s-1X\s+1\fP'th line of comments
\fIregarding\fP Re: subject \fICommentX\fP similar to \fIcommentsX\fP
\fIpageWidth\fP page width in millimeters \fIpage-count\fP # pages other than cover page
.I commentsX
lines to generate.
.TP 12
+.BI \-M " address"
+Use
+.I address
+for the sender's e-mail address.
+.TP 12
.BI \-n " number"
Use
.I number