2 ** config.c -- master nmh configuration file
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
17 char *mhetcdir = NMHETCDIR;
19 char *invo_name; /* command invocation name */
20 char *mypath; /* user's $HOME */
21 char *mmhpath; /* pathname of user's mmh dir */
22 char *defpath; /* pathname of user's profile */
23 char *ctxpath; /* pathname of user's context */
24 char ctxflags; /* status of user's context */
25 struct node *m_defs; /* profile/context structure */
29 ** nmh constants: standard file names
31 ** Important: Adjust uip/mmh.sh if you make changes here!
34 /* default name of the mail storage */
35 char *mailstore = "Mail";
37 /* default name of user profile */
38 char *mmhdir = ".mmh";
40 /* default name of user profile */
41 char *profile = "profile";
43 /* default name for the nmh context file */
44 char *context = "context";
47 ** Default name of file for public sequences. Gets overridden
48 ** by a `Mh-Sequences' entry in the user's profile. Set to NULL
49 ** or the empty string to use private sequences by default.
51 char *mh_seq = ".mh_sequences";
53 /* standard component files */
54 char *components = "components"; /* comp */
55 char *replcomps = "replcomps"; /* repl */
56 char *replgroupcomps = "replgroupcomps"; /* repl -group */
57 char *forwcomps = "forwcomps"; /* forw */
58 char *distcomps = "distcomps"; /* dist */
59 char *rcvdistcomps = "rcvdistcomps"; /* rcvdist */
60 char *digestcomps = "digestcomps"; /* forw -digest */
62 /* standard format (filter) files */
63 char *mhlformat = "mhl.format"; /* show */
64 char *mhlreply = "mhl.reply"; /* repl */
65 char *scanformat = "scan.default"; /* scan/inc */
69 ** standard names for: mail folders, sequences, and profile entries
72 /* some default folder names */
73 char *defaultfolder = "+inbox";
74 char *draftfolder = "+drafts";
75 char *trashfolder = "+trash";
77 char *inbox = "Inbox"; /* profile entry name to specify the default folder */
78 char *curfolder = "Current-Folder";
80 /* predefined sequences */
82 char *seq_beyond = "b"; /* the previous `new' sequence */
84 char *seq_first = "f";
88 char *seq_unseen = "u";
91 char *usequence = "Unseen-Sequence";
92 char *nsequence = "Sequence-Negation";
94 /* profile entries for storage locations */
95 char *nmhstorage = "nmh-storage";
97 /* Default header field names */
98 char *attach_hdr = "Attach";
99 char *sign_hdr = "Sign";
100 char *enc_hdr = "Enc";
102 /* the tool to query the mime type of a file */
103 char *mimetypequery = "Mime-Type-Query";
104 char *mimetypequeryproc = "file -b --mime";
109 ** nmh default programs
113 ** This is the default program invoked by a "list" or "display" response
114 ** at the "What now?" prompt. It will be given the absolute pathname of
115 ** the message to show.
117 char *listproc = "show";
120 ** This is used by mhl as a front-end. It is also used
121 ** by show(1) as the default method of displaying message bodies
122 ** or message parts of type text/plain.
124 char *defaultpager = "more";
127 ** This is the editor invoked by the various message
128 ** composition programs. It SHOULD be a full screen
129 ** editor, such as vi or emacs, but any editor will work.
131 char *defaulteditor = "vi";
134 ** This program is called after comp, et. al., have built a draft
136 char *whatnowproc = "whatnow";
139 ** This is the sendmail interface to use for sending mail.
141 char *sendmail = SENDMAILPATH;
144 ** This is the path to the system mail spool directory (e.g. `/var/mail').
146 char *mailspool = MAILSPOOL;
154 ** Folders (directories) are created with this protection (mode)
156 char *foldprot = "0700";
159 ** Every NEW message will be created with this protection. When a
160 ** message is filed it retains its protection.
162 char *msgprot = "0600";
167 ** Standard yes/no switches structure
169 struct swit anoyes[] = {