Removed the -width switch from send, spost and repl.
[mmh] / uip / spost.c
index 8c55c06..947904e 100644 (file)
@@ -50,23 +50,21 @@ struct swit switches[] = {
        { "alias aliasfile", 0 },
 #define NALIASW  13
        { "noalias", 0 },
-#define WIDTHSW  14
-       { "width columns", 0 },
-#define VERSIONSW  15
+#define VERSIONSW  14
        { "version", 0 },
-#define HELPSW  16
+#define HELPSW  15
        { "help", 0 },
-#define DEBUGSW  17
+#define DEBUGSW  16
        { "debug", -5 },
-#define DISTSW  18
+#define DISTSW  17
        { "dist", -4 },  /* interface from dist */
-#define PUSHSW  19  /* fork to sendmail then exit */
+#define PUSHSW  18  /* fork to sendmail then exit */
        { "push", -4 },
-#define NPUSHSW  20  /* exec sendmail */
+#define NPUSHSW  19  /* exec sendmail */
        { "nopush", -6 },
-#define LIBSW  21
+#define LIBSW  20
        { "library directory", -7 },
-#define ANNOSW  22
+#define ANNOSW  21
        { "idanno number", -6 },
        { NULL, 0 }
 };
@@ -143,7 +141,6 @@ static int watch = 0;  /* watch the delivery process */
 static int backflg = 0;  /* rename input file as *.bak when done */
 static int pushflg = 0;  /* if going to fork to sendmail */
 static int aliasflg = 0;  /* if going to process aliases */
-static int outputlinelen=72;
 
 static unsigned msgflags = 0;  /* what we've seen */
 
@@ -295,15 +292,6 @@ main(int argc, char **argv)
                                aliasflg = 0;
                                continue;
 
-                       case WIDTHSW:
-                               if (!(cp = *argp++) || *cp == '-')
-                                       adios(NULL, "missing argument to %s",
-                                                       argp[-2]);
-                               outputlinelen = atoi(cp);
-                               if (outputlinelen <= 10)
-                                       outputlinelen = 72;
-                               continue;
-
                        case LIBSW:
                                if (!(cp = *argp++) || *cp == '-')
                                        adios(NULL, "missing argument to %s",
@@ -713,7 +701,7 @@ putone(char *adr, int pos, int indent)
        len = strlen( adr );
        if (pos == indent)
                linepos = pos;
-       else if (linepos+len > outputlinelen) {
+       else if (linepos+len > OUTPUTLINELEN) {
                fprintf( out, ",\n%*s", indent, "");
                linepos = indent;
                pos += indent + 2;