X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fspost.c;h=947904e83036bb16f1bf00ff3d5208e854b7ebc5;hp=8c55c06e63e96ad99550ac47a515ba8ea7e71fd5;hb=869aa60129811d7b160f353892dc5956a8aaac22;hpb=4d4f3e6367922ac4237d87ccfb070dbbcb6ff6be diff --git a/uip/spost.c b/uip/spost.c index 8c55c06..947904e 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -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;