X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparam.c;h=db8e85afce5512ef83e5542fc75142a3d1856b83;hp=d9ba2a379161769cd634d7d012e46286142ef4ec;hb=cd1299b02c2fbe61f408a8387402494364688337;hpb=fd00a3b030ab9d854eac79641f7bf25e6538acc1 diff --git a/uip/mhparam.c b/uip/mhparam.c index d9ba2a3..db8e85a 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -11,8 +11,6 @@ #include -extern char *mhlibdir; - static struct swit switches[] = { #define COMPSW 0 { "components", 0 }, @@ -35,33 +33,33 @@ struct proc { }; static struct proc procs [] = { - { "context", &context }, - { "mh-sequences", &mh_seq }, - { "buildmimeproc", &buildmimeproc }, - { "editor", &defaulteditor }, - { "faceproc", &faceproc }, - { "fileproc", &fileproc }, - { "foldprot", &foldprot }, - { "incproc", &incproc }, - { "lproc", &lproc }, - { "mailproc", &mailproc }, - { "mhlproc", &mhlproc }, - { "moreproc", &moreproc }, - { "msgprot", &msgprot }, - { "postproc", &postproc }, - { "rmmproc", &rmmproc }, - { "sendmail", &sendmail }, - { "sendproc", &sendproc }, - { "showmimeproc", &showmimeproc }, - { "showproc", &showproc }, - { "version", &version_num }, - { "whatnowproc", &whatnowproc }, - { "etcdir", &mhetcdir }, - { "libdir", &mhlibdir }, - { "backup-prefix", &backup_prefix }, - { "altmsg-link", &altmsglink }, - { "draft-folder", &draftfolder }, - { NULL, NULL }, + { "attachment-header", &attach_hdr }, + { "context", &context }, + { "mh-sequences", &mh_seq }, + { "buildmimeproc", &buildmimeproc }, + { "editor", &defaulteditor }, + { "fileproc", &fileproc }, + { "foldprot", &foldprot }, + { "incproc", &incproc }, + { "lproc", &lproc }, + { "mailproc", &mailproc }, + { "mhlproc", &mhlproc }, + { "mimetypequeryproc", &mimetypequeryproc }, + { "moreproc", &moreproc }, + { "msgprot", &msgprot }, + { "postproc", &postproc }, + { "rmmproc", &rmmproc }, + { "sendmail", &sendmail }, + { "sendproc", &sendproc }, + { "showmimeproc", &showmimeproc }, + { "showproc", &showproc }, + { "version", &version_num }, + { "whatnowproc", &whatnowproc }, + { "etcdir", &mhetcdir }, + { "backup-prefix", &backup_prefix }, + { "altmsg-link", &altmsglink }, + { "draft-folder", &draftfolder }, + { NULL, NULL }, }; @@ -91,34 +89,34 @@ main(int argc, char **argv) while ((cp = *argp++)) { if (*cp == '-') { switch (smatch(++cp, switches)) { - case AMBIGSW: - ambigsw(cp, switches); - done(1); - case UNKWNSW: - adios(NULL, "-%s unknown", cp); - - case HELPSW: - snprintf(buf, sizeof(buf), "%s [profile-components] [switches]", invo_name); - print_help(buf, switches, 1); - done(1); - case VERSIONSW: - print_version(invo_name); - done(1); - - case COMPSW: - components = 1; - break; - case NCOMPSW: - components = 0; - break; - - case ALLSW: - all = 1; - break; - - case DEBUGSW: - debug = 1; - break; + case AMBIGSW: + ambigsw(cp, switches); + done(1); + case UNKWNSW: + adios(NULL, "-%s unknown", cp); + + case HELPSW: + snprintf(buf, sizeof(buf), "%s [profile-components] [switches]", invo_name); + print_help(buf, switches, 1); + done(1); + case VERSIONSW: + print_version(invo_name); + done(1); + + case COMPSW: + components = 1; + break; + case NCOMPSW: + components = 0; + break; + + case ALLSW: + all = 1; + break; + + case DEBUGSW: + debug = 1; + break; } } else { comps[compp++] = cp;