.I other-alias
.RS 5
Indicates aliases files for
-.BR ali
-and
+.BR ali ,
.BR send .
-This may be used instead of the
-.B \-alias
-.I file
-switch. (profile, no default)
+and
+.BR spost .
+(profile, no default)
.RE
.PP
.BR Draft\-Folder :
.HP 5
.na
.B send
-.RB [ \-alias
-.IR aliasfile ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ msg
\&...]
the appended fields and field reformatting. The `Fcc:' fields
will be removed from all outgoing copies of the message.
.PP
-The files specified by the profile entry `Aliasfile:' and any
-additional alias files given by the
-.B \-alias
-.I aliasfile
-switch will be
-read (more than one file, each preceded by
-.BR \-alias ,
-can be named).
+The files specified by the profile entry `Aliasfile:' will be read.
See
.BR mh\-alias (5)
for more information.
.na
.HP 5
.B spost
-.RB [ \-alias
-.IR aliasfile
-.RB " | " \-noalias ]
.RB [ \-verbose " | " \-noverbose ]
.I file
.RB [ \-Version ]
.B send
to send the Bcc message.)
.PP
-The
-.B \-alias
-.I aliasfile
-switch can be used to specify a file that spost
-should take aliases from. More than one file can be specified, each
-being preceded with
-.BR \-alias .
-In any event, the alias file, set with the `Aliasfile' profile entry, is
-read first.
+The `Aliasfile' profile entry
+can be used to specify one or more files that spost
+should take aliases from.
.PP
The
.B \-verbose
static struct swit switches[] = {
-#define ALIASW 0
- { "alias aliasfile", 0 },
-#define DEBUGSW 1
+#define DEBUGSW 0
{ "debug", -5 },
-#define VERBSW 2
+#define VERBSW 1
{ "verbose", 0 },
-#define NVERBSW 3
+#define NVERBSW 2
{ "noverbose", 2 },
-#define VERSIONSW 4
+#define VERSIONSW 3
{ "Version", 0 },
-#define HELPSW 5
+#define HELPSW 4
{ "help", 0 },
{ NULL, 0 }
};
int in, out;
int n;
char *cp, *maildir = NULL;
- char buf[BUFSIZ], **ap, **argp, **arguments;
+ char buf[BUFSIZ], **argp, **arguments;
char *msgs[MAXARGS], *vec[MAXARGS];
char *files[MAXARGS];
struct msgs *mp;
case NVERBSW:
vec[vecp++] = --cp;
continue;
-
- case ALIASW:
- vec[vecp++] = --cp;
- if (!(cp = *argp++) || *cp == '-') {
- adios(NULL, "missing argument to %s",
- argp[-2]);
- }
- vec[vecp++] = cp;
- continue;
-
}
} else {
if (*cp == '/') {
}
}
- /* check for "Aliasfile:" profile entry */
- if ((cp = context_find("Aliasfile"))) {
- char *dp = NULL;
-
- for (ap=brkstring(dp=getcpy(cp), " ", "\n"); ap && *ap; ap++) {
- vec[vecp++] = "-alias";
- vec[vecp++] = getcpy(etcpath(*ap));
- }
- }
-
if (!msgp && !nfiles) {
msgs[msgp++] = seq_cur;
}
{ "verbose", 0 },
#define NVERBSW 1
{ "noverbose", 2 },
-#define ALIASW 2
- { "alias aliasfile", 0 },
-#define NALIASW 3
- { "noalias", 2 },
-#define VERSIONSW 4
+#define VERSIONSW 2
{ "Version", 0 },
-#define HELPSW 5
+#define HELPSW 3
{ "help", 0 },
-#define DEBUGSW 6
+#define DEBUGSW 4
{ "debug", -5 },
-#define DISTSW 7
+#define DISTSW 5
{ "dist", -4 }, /* interface from dist */
{ NULL, 0 }
};
case NVERBSW:
verbose = 0;
continue;
-
- case ALIASW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- aliasflg = 1;
- if ((state = alias(cp)) != AK_OK)
- adios(NULL, "aliasing error in file %s - %s", cp, akerror(state));
- continue;
- case NALIASW:
- aliasflg = 0;
- continue;
}
}
if (msg)
tmpfil = getcpy(m_mktemp2("/tmp/", invo_name, NULL, &out));
}
+ /* check for "Aliasfile:" profile entry */
+ if ((cp = context_find("Aliasfile"))) {
+ char *dp, **ap;
+
+ aliasflg = 1;
+ for (ap=brkstring(dp=getcpy(cp), " ", "\n"); ap && *ap;
+ ap++) {
+ if ((state = alias(etcpath(*ap))) != AK_OK) {
+ adios(NULL, "aliasing error in file %s: %s",
+ *ap, akerror(state));
+ }
+ }
+ }
+
+
hdrtab = (msgstate == normal) ? NHeaders : RHeaders;
for (compnum = 1, state = FLD;;) {