.IR address ]
.RB [ \-fcc
.IR +folder ]
+.RB [ \-subject
+.IR text ]
.RB [ \-whatnowproc
.IR program ]
.RB [ \-nowhatnowproc ]
To: {to switch} or blank
cc: {cc switch} or blank
Fcc: {fcc switch} or +outbox
-Subject:
+Subject: {subject switch} or blank
--------
.fi
.RE
from string Any addresses specified with `\-from\ address'
to string Any addresses specified with `\-to\ address'
cc string Any addresses specified with `\-cc\ address'
+subject string Any text specified with `\-subject\ text'
.fi
.RE
.PP
.I address
switch.
.PP
+Any text you give to the
+.B \-subject
+switch will be placed in the \*(lqSubject:\*(rq field in the draft.
+.PP
If the draft already exists,
.B comp
will ask you as to the disposition
{ "fcc mailbox", 0 },
#define WIDTHSW 17
{ "width colums", 0 },
+#define SUBJECTSW 18
+ { "subject text", 0 },
{ NULL, 0 }
};
char *ed = NULL, *file = NULL, *form = NULL;
char *folder = NULL, *msg = NULL, buf[BUFSIZ];
char *to = NULL, *from = NULL, *cc = NULL, *fcc = NULL, *dp;
+ char *subject = NULL;
char drft[BUFSIZ], **argp, **arguments;
struct msgs *mp = NULL;
struct format *fmt;
if ((outputlinelen = atoi(cp)) < 10)
adios (NULL, "impossible width %d", outputlinelen);
continue;
+
+ case SUBJECTSW:
+ if (!(cp = *argp++) || *cp == '-')
+ adios (NULL, "missing argument to %s", argp[-2]);
+ subject = cp;
+ continue;
}
}
if (*cp == '+' || *cp == '@') {
if (cptr)
cptr->c_text = fcc;
}
+ if (subject) {
+ FINDCOMP(cptr, "subject");
+ if (cptr)
+ cptr->c_text = subject;
+ }
}
try_it_again: