send,spost: No more use of -alias, spost reads Aliasfile from the profile.
[mmh] / uip / send.c
index 245bf3c..5e1f0a1 100644 (file)
@@ -52,17 +52,15 @@ static void make_mime_composition_file_entry(char *);
 
 
 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 }
 };
@@ -76,7 +74,7 @@ main(int argc, char **argv)
        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;
@@ -118,16 +116,6 @@ main(int argc, char **argv)
                        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 == '/') {
@@ -138,16 +126,6 @@ main(int argc, char **argv)
                }
        }
 
-       /* 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;
        }