char **p_field;
};
+char *empty = "";
+
+/*
+** This list should contain all values of h/mh.h and config/config.c
+** TODO: Add the constants Nbby, MAXARGS, NUMATTRS, NAMESZ
+*/
static struct proc procs [] = {
- { "attachment-header", &attach_hdr },
- { "sign-header", &sign_hdr },
- { "enc-header", &enc_hdr },
- { "context", &context },
- { "mh-sequences", &mh_seq },
+ { "#--Version--", &empty },
+ { "version", &version_num },
+ { "version-str", &version_str },
+
+ { "#--Path-and-File-Names--", &empty },
+ { "mypath", &mypath },
+ { "mmhdir", &mmhdir },
+ { "mmhpath", &mmhpath },
+ { "profile", &profile },
+ { "defpath", &defpath },
+ { "context", &context },
+ { "ctxpath", &ctxpath },
+ { "mhetcdir", &mhetcdir },
+ { "mailspool", &mailspool },
+ { "mailstore", &mailstore },
+ { "mh-sequences", &mh_seq },
+
+ { "#--Default-Programs--", &empty },
{ "editor", &defaulteditor },
- { "foldprot", &foldprot },
- { "listproc", &listproc },
- { "mimetypequeryproc", &mimetypequeryproc },
- { "msgprot", &msgprot },
{ "pager", &defaultpager },
{ "sendmail", &sendmail },
- { "version", &version_num },
+ { "listproc", &listproc },
{ "whatnowproc", &whatnowproc },
- { "etcdir", &mhetcdir },
- { "draft-folder", &draftfolder },
- { "trash-folder", &trashfolder },
+ { "mimetypequeryproc", &mimetypequeryproc },
+
+ { "#--Mail-Folder-Names--", &empty },
+ { "inbox", &defaultfolder },
+ { "draftfolder", &draftfolder },
+ { "trashfolder", &trashfolder },
+
+ { "#--Profile-and-Context-Component-Names--", &empty },
+ { "curfolder-component", &curfolder },
+ { "inbox-component", &inbox },
+ { "mimetypequery-component", &mimetypequery },
+ { "nmhstorage-component", &nmhstorage },
+ { "nsequence-component", &nsequence },
+ { "psequence-component", &psequence },
+ { "usequence-component", &usequence },
+
+ { "#--Mmh-specific-Mail-Header-Names--", &empty },
+ { "attachment-header", &attach_hdr },
+ { "enc-header", &enc_hdr },
+ { "sign-header", &sign_hdr },
+
+ { "#--File-Permissions--", &empty },
+ { "foldprot", &foldprot },
+ { "msgprot", &msgprot },
+
+ { "#--Template-File-Names--", &empty },
+ { "components", &components },
+ { "digestcomps", &digestcomps },
+ { "distcomps", &distcomps },
+ { "forwcomps", &forwcomps },
+ { "rcvdistcomps", &rcvdistcomps },
+ { "replcomps", &replcomps },
+ { "replgroupcomps", &replgroupcomps },
+ { "mhlformat", &mhlformat },
+ { "mhlreply", &mhlreply },
+
+ { "#--Default-Sequence-Names--", &empty },
+ { "seq-all", &seq_all },
+ { "seq-beyond", &seq_beyond },
+ { "seq-cur", &seq_cur },
+ { "seq-first", &seq_first },
+ { "seq-last", &seq_last },
+ { "seq-next", &seq_next },
+ { "seq-prev", &seq_prev },
+ { "seq-unseen", &seq_unseen },
+ { "seq-neg", &seq_neg },
+
{ NULL, NULL },
};
invo_name = mhbasename(argv[0]);
- /* read user profile/context */
context_read();
arguments = getarguments(invo_name, argc, argv, 1);