X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Finc.c;h=2297a03679a9644c5571646e25d9d6a461081f16;hp=e3199c048e4355c6028d89a1134ef1c7c5c27517;hb=51d0e643f8daeb2db8de0a3d31d7d7f038b48380;hpb=3916ab66ad5d183705ac12357621ea8661afd3c0 diff --git a/uip/inc.c b/uip/inc.c index e3199c0..2297a03 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -51,21 +50,19 @@ static struct swit switches[] = { { "file name", 0 }, #define FORMSW 5 { "form formatfile", 0 }, -#define FMTSW 6 - { "format string", 5 }, -#define SILSW 7 +#define SILSW 6 { "silent", 0 }, -#define NSILSW 8 +#define NSILSW 7 { "nosilent", 0 }, -#define TRNCSW 9 +#define TRNCSW 8 { "truncate", 0 }, -#define NTRNCSW 10 +#define NTRNCSW 9 { "notruncate", 0 }, -#define WIDTHSW 11 +#define WIDTHSW 10 { "width columns", 0 }, -#define VERSIONSW 12 +#define VERSIONSW 11 { "version", 0 }, -#define HELPSW 13 +#define HELPSW 12 { "help", 0 }, }; @@ -135,7 +132,7 @@ main(int argc, char **argv) ** not truncate mailspool */ char *cp, *maildir = NULL, *folder = NULL; - char *format = NULL, *form = NULL; + char *form = NULL; char *audfile = NULL, *from = NULL; char buf[BUFSIZ], **argp, *nfs, **arguments; struct msgs *mp = NULL; @@ -166,7 +163,6 @@ main(int argc, char **argv) /* read user profile/context */ context_read(); - mts_init(invo_name); arguments = getarguments(invo_name, argc, argv, 1); argp = arguments; @@ -242,13 +238,6 @@ main(int argc, char **argv) if (!(form = *argp++) || *form == '-') adios(NULL, "missing argument to %s", argp[-2]); - format = NULL; - continue; - case FMTSW: - if (!(format = *argp++) || *format == '-') - adios(NULL, "missing argument to %s", - argp[-2]); - form = NULL; continue; case WIDTHSW: @@ -288,7 +277,7 @@ main(int argc, char **argv) else if ((newmail = context_find("maildrop")) && *newmail) newmail = toabsdir(newmail); else { - newmail = concat(MAILDIR, "/", MAILFIL, NULL); + newmail = concat(mailspool, "/", getusername(), NULL); } if (stat(newmail, &s1) == NOTOK || s1.st_size == 0) adios(NULL, "no mail to incorporate"); @@ -375,7 +364,7 @@ main(int argc, char **argv) #endif /* MHE */ /* Get new format string */ - nfs = new_fs(form, format, FORMAT); + nfs = new_fs(form, FORMAT); if (noisy) { printf("Incorporating new mail into %s...\n\n", folder); @@ -400,7 +389,7 @@ main(int argc, char **argv) /* create scanline for new message */ switch (incerr = scan(in, msgnum + 1, msgnum + 1, nfs, width, - msgnum == hghnum && chgflag, 1, NULL, 0L, noisy)) { + msgnum == hghnum && chgflag, 1, noisy)) { case SCNFAT: case SCNEOF: break; @@ -423,7 +412,6 @@ main(int argc, char **argv) break; case SCNMSG: - case SCNENC: /* ** Run the external program hook on the message. */