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 *mhlibdir = NMHLIBDIR;
18 char *mhetcdir = NMHETCDIR;
20 char *invo_name; /* command invocation name */
21 char *mypath; /* user's $HOME */
22 char *mmhpath; /* pathname of user's mmh dir */
23 char *defpath; /* pathname of user's profile */
24 char *ctxpath; /* pathname of user's context */
25 char ctxflags; /* status of user's context */
26 struct node *m_defs; /* profile/context structure */
30 ** nmh constants: standard file names
32 ** Important: Adjust uip/mmh.sh if you make changes here!
35 /* default name of the mail storage */
36 char *mailstore = "Mail";
38 /* default name of user profile */
39 char *mmhdir = ".mmh";
41 /* default name of user profile */
42 char *profile = "profile";
44 /* default name for the nmh context file */
45 char *context = "context";
48 ** Default name of file for public sequences. Gets overridden
49 ** by a `Mh-Sequences' entry in the user's profile. Set to NULL
50 ** or the empty string to use private sequences by default.
52 char *mh_seq = ".mh_sequences";
54 /* standard component files */
55 char *components = "components"; /* comp */
56 char *replcomps = "replcomps"; /* repl */
57 char *replgroupcomps = "replgroupcomps"; /* repl -group */
58 char *forwcomps = "forwcomps"; /* forw */
59 char *distcomps = "distcomps"; /* dist */
60 char *rcvdistcomps = "rcvdistcomps"; /* rcvdist */
61 char *digestcomps = "digestcomps"; /* forw -digest */
63 /* standard format (filter) files */
64 char *mhlformat = "mhl.format"; /* show */
65 char *mhlreply = "mhl.reply"; /* repl -filter */
66 char *mhlforward = "mhl.forward"; /* forw -filter */
70 ** standard names for: mail folders, sequences, and profile entries
73 /* some default folder names */
74 char *defaultfolder = "+inbox";
75 char *draftfolder = "+drafts";
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 *psequence = "Previous-Sequence";
93 char *nsequence = "Sequence-Negation";
95 /* profile entries for storage locations */
96 char *nmhstorage = "nmh-storage";
97 char *nmhcache = "nmh-cache";
98 char *nmhprivcache = "nmh-private-cache";
100 /* profile entry for external ftp access command */
101 char *nmhaccessftp = "nmh-access-ftp";
103 /* Default attachment header field name */
104 char *attach_hdr = "Attach";
110 ** nmh default programs
114 ** This is the program to process MIME composition files
116 char *buildmimeproc = NMHBINDIR"/mhbuild";
119 ** This is the program to `cat' a file.
121 char *catproc = "/bin/cat";
124 ** This program is usually called directly by users, but it is
125 ** also invoked by the spost program to process an "Fcc", or by
126 ** comp/repl/forw/dist to refile a draft message.
128 char *fileproc = NMHBINDIR"/refile";
131 ** This program is called to incorporate messages into a folder.
133 char *incproc = NMHBINDIR"/inc";
136 ** This is the default program invoked by a "list" response
137 ** at the "What now?" prompt. It is also used by the draft
138 ** folder facility in comp/dist/forw/repl to display the
141 char *lproc = "more";
144 ** This is the path for the Bell equivalent mail program.
146 char *mailproc = NMHBINDIR"/mhmail";
149 ** This is used by mhl as a front-end. It is also used
150 ** by mhshow as the default method of displaying message bodies
151 ** or message parts of type text/plain.
153 char *moreproc = "more";
156 ** This is the editor invoked by the various message
157 ** composition programs. It SHOULD be a full screen
158 ** editor, such as vi or emacs, but any editor will work.
160 char *defaulteditor = "vi";
163 ** This is the delivery program called by send to actually
164 ** deliver mail to users. This is the interface to the MTS.
166 char *postproc = NMHLIBDIR"/spost";
169 ** This is program is called by slocal to handle
170 ** the action `folder' or `+'.
172 char *rcvstoreproc = NMHLIBDIR"/rcvstore";
175 ** This program is called to remove a message by rmm or refile -nolink.
176 ** It's usually empty, which means to rename the file to a backup name.
178 char *rmmproc = NULL;
181 ** This program is usually called by the user's whatnowproc, but it
182 ** may also be called directly to send a message previously composed.
184 char *sendproc = NMHBINDIR"/send";
187 ** This is the path to the program used by "show"
188 ** to display non-text (MIME) messages.
190 char *showmimeproc = NMHBINDIR"/mhshow";
193 ** This is the default program called by "show" to filter
194 ** and display standard text (non-MIME) messages. It can be
195 ** changed to a pager (such as "more" or "less") if you prefer
196 ** that such message not be filtered in any way.
198 char *showproc = NMHLIBDIR"/mhl";
201 ** This is the program (mhl) used to filter messages. It is
202 ** used by mhshow to filter and display the message headers of
203 ** MIME messages. It is used by repl/forw (with -filter)
204 ** to filter the message to which you are replying/forwarding.
205 ** It is used by send/spost (with -filter) to filter the message
206 ** for "Bcc:" recipients.
208 char *mhlproc = NMHLIBDIR"/mhl";
211 ** This program is called after comp, et. al., have built a draft
213 char *whatnowproc = NMHBINDIR"/whatnow";
216 ** This is the sendmail interface to use for sending mail.
218 char *sendmail = SENDMAILPATH;
221 ** This is the path to the system mail spool directory (e.g. `/var/mail').
223 char *mailspool = MAILSPOOL;
231 ** The prefix that is prepended to the name of message files when they
232 ** are "removed" by rmm. This should typically be `,' or `#'.
234 char *backup_prefix = ",";
237 ** Name of link to file to which you are replying or which you are
238 ** redistributing. See `$mhaltmsg' in the mh-profile(5) man page.
240 char *altmsglink = "@";
243 ** Folders (directories) are created with this protection (mode)
245 char *foldprot = "700";
248 ** Every NEW message will be created with this protection. When a
249 ** message is filed it retains its protection, so this only applies
250 ** to messages coming in through inc.
252 char *msgprot = "600";
257 ** Standard yes/no switches structure
259 struct swit anoyes[] = {