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 */
68 ** standard names for: mail folders, sequences, and profile entries
71 /* some default folder names */
72 char *defaultfolder = "+inbox";
73 char *draftfolder = "+drafts";
75 char *inbox = "Inbox"; /* profile entry name to specify the default folder */
76 char *curfolder = "Current-Folder";
78 /* predefined sequences */
80 char *seq_beyond = "b"; /* the previous `new' sequence */
82 char *seq_first = "f";
86 char *seq_unseen = "u";
89 char *usequence = "Unseen-Sequence";
90 char *psequence = "Previous-Sequence";
91 char *nsequence = "Sequence-Negation";
93 /* profile entries for storage locations */
94 char *nmhstorage = "nmh-storage";
95 char *nmhcache = "nmh-cache";
96 char *nmhprivcache = "nmh-private-cache";
98 /* profile entry for external ftp access command */
99 char *nmhaccessftp = "nmh-access-ftp";
101 /* Default attachment header field name */
102 char *attach_hdr = "Attach";
104 /* the tool to query the mime type of a file */
105 char *mimetypequery = "Mime-Type-Query";
106 char *mimetypequeryproc = "file -b --mime";
111 ** nmh default programs
115 ** This program is usually called directly by users, but it is
116 ** also invoked by the spost program to process an "Fcc", or by
117 ** comp/repl/forw/dist to refile a draft message.
119 char *fileproc = NMHBINDIR"/refile";
122 ** This is the default program invoked by a "list" or "display" response
123 ** at the "What now?" prompt. It will be given the absolute pathname of
124 ** the message to show. The string ``show -file'' is most likely what you
125 ** want to be you listproc.
127 char *listproc = "show -file";
130 ** This is the path for the Bell equivalent mail program.
132 char *mailproc = "mhmail";
135 ** This is used by mhl as a front-end. It is also used
136 ** by mhshow as the default method of displaying message bodies
137 ** or message parts of type text/plain.
139 char *defaultpager = "more";
142 ** This is the editor invoked by the various message
143 ** composition programs. It SHOULD be a full screen
144 ** editor, such as vi or emacs, but any editor will work.
146 char *defaulteditor = "vi";
149 ** This is the delivery program called by send to actually
150 ** deliver mail to users. This is the interface to the MTS.
152 char *postproc = NMHBINDIR"/spost";
155 ** This program is called to remove a message by rmm or refile -nolink.
156 ** It's usually empty, which means to rename the file to a backup name.
158 char *rmmproc = NULL;
161 ** This program is usually called by the user's whatnowproc, but it
162 ** may also be called directly to send a message previously composed.
164 char *sendproc = NMHBINDIR"/send";
167 ** This is the path to the program used by "show"
168 ** to display non-text (MIME) messages.
170 char *showmimeproc = NMHBINDIR"/mhshow";
173 ** This is the default program called by "show" to filter
174 ** and display standard text (non-MIME) messages. It can be
175 ** changed to a pager (such as "more" or "less") if you prefer
176 ** that such message not be filtered in any way.
178 char *showproc = NMHBINDIR"/mhl";
181 ** This is the program (mhl) used to filter messages. It is
182 ** used by mhshow to filter and display the message headers of
183 ** MIME messages. It is used by repl (with -filter)
184 ** to filter the message to which you are replying.
185 ** It is used by send/spost (with -filter) to filter the message
186 ** for "Bcc:" recipients.
188 char *mhlproc = NMHBINDIR"/mhl";
191 ** This program is called after comp, et. al., have built a draft
193 char *whatnowproc = NMHBINDIR"/whatnow";
196 ** This is the sendmail interface to use for sending mail.
198 char *sendmail = SENDMAILPATH;
201 ** This is the path to the system mail spool directory (e.g. `/var/mail').
203 char *mailspool = MAILSPOOL;
211 ** The prefix that is prepended to the name of message files when they
212 ** are "removed" by rmm. This should typically be `,' or `#'.
214 char *backup_prefix = ",";
217 ** Name of link to file to which you are replying or which you are
218 ** redistributing. See `$mhaltmsg' in the mh-profile(5) man page.
220 char *altmsglink = "@";
223 ** Folders (directories) are created with this protection (mode)
225 char *foldprot = "700";
228 ** Every NEW message will be created with this protection. When a
229 ** message is filed it retains its protection, so this only applies
230 ** to messages coming in through inc.
232 char *msgprot = "600";
237 ** Standard yes/no switches structure
239 struct swit anoyes[] = {