Removed the configuration option NOPUBLICSEQ.
[mmh] / config / config.c
1 /*
2 ** config.c -- master nmh configuration file
3 **
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.
7 */
8
9 #include <h/mh.h>
10
11
12
13 /*
14 ** nmh globals
15 */
16
17 char *mhlibdir = NMHLIBDIR;
18 char *mhetcdir = NMHETCDIR;
19
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  */
27
28
29 /*
30 ** nmh constants
31 **
32 ** Important: Adjust uip/mmh.sh if you make changes here!
33 */
34
35 /* default name of the mail storage */
36 char *mailstore = "Mail";
37
38 /* default name of user profile */
39 char *mmhdir = ".mmh";
40
41 /* default name of user profile */
42 char *profile = "profile";
43
44 /* default name for the nmh context file */
45 char *context = "context";
46
47 /*
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.
51 */
52 char *mh_seq = ".mh_sequences";
53
54 /* name of current message "sequence" */
55 char *current = "cur";
56
57
58 /* standard component files */
59 char *components     = "components";       /* comp         */
60 char *replcomps      = "replcomps";        /* repl         */
61 char *replgroupcomps = "replgroupcomps";   /* repl -group  */
62 char *forwcomps      = "forwcomps";        /* forw         */
63 char *distcomps      = "distcomps";        /* dist         */
64 char *rcvdistcomps   = "rcvdistcomps";     /* rcvdist      */
65 char *digestcomps    = "digestcomps";      /* forw -digest */
66
67 /* standard format (filter) files */
68 char *mhlformat      = "mhl.format";       /* show         */
69 char *mhlreply       = "mhl.reply";        /* repl -filter */
70 char *mhlforward     = "mhl.forward";      /* forw -filter */
71
72 char *inbox = "Inbox";
73 char *defaultfolder = "+inbox";
74
75 char *draftfolder = "+drafts";
76
77 char *curfolder = "Current-Folder";
78 char *usequence = "Unseen-Sequence";
79 char *psequence = "Previous-Sequence";
80 char *nsequence = "Sequence-Negation";
81
82 /* profile entries for storage locations */
83 char *nmhstorage   = "nmh-storage";
84 char *nmhcache     = "nmh-cache";
85 char *nmhprivcache = "nmh-private-cache";
86
87 /* profile entry for external ftp access command */
88 char *nmhaccessftp = "nmh-access-ftp";
89
90
91 /*
92 ** nmh processes
93 */
94
95 /*
96 ** This is the program to process MIME composition files
97 */
98 char *buildmimeproc = NMHBINDIR"/mhbuild";
99
100 /*
101 ** This is the program to `cat' a file.
102 */
103 char *catproc = "/bin/cat";
104
105 /*
106 ** mhl runs this program as a visual-end.
107 */
108 char *faceproc = NULL;
109
110 /*
111 ** This program is usually called directly by users, but it is
112 ** also invoked by the spost program to process an "Fcc", or by
113 ** comp/repl/forw/dist to refile a draft message.
114 */
115 char *fileproc = NMHBINDIR"/refile";
116
117 /*
118 ** This program is called to incorporate messages into a folder.
119 */
120 char *incproc = NMHBINDIR"/inc";
121
122 /*
123 ** When a user runs an nmh program for the first time, this program
124 ** is called to create his nmh profile, and mail directory.
125 */
126 char *installproc = NMHLIBDIR"/install-mh";
127
128 /*
129 ** This is the default program invoked by a "list" response
130 ** at the "What now?" prompt.  It is also used by the draft
131 ** folder facility in comp/dist/forw/repl to display the
132 ** draft message.
133 */
134 char *lproc = "more";
135
136 /*
137 ** This is the path for the Bell equivalent mail program.
138 */
139 char *mailproc = NMHBINDIR"/mhmail";
140
141 /*
142 ** This is used by mhl as a front-end.  It is also used
143 ** by mhshow as the default method of displaying message bodies
144 ** or message parts of type text/plain.
145 */
146 char *moreproc = "more";
147
148 /*
149 ** This is the program (mhl) used to filter messages.  It is
150 ** used by mhshow to filter and display the message headers of
151 ** MIME messages.  It is used by repl/forw (with -filter)
152 ** to filter the message to which you are replying/forwarding.
153 ** It is used by send/spost (with -filter) to filter the message
154 ** for "Bcc:" recipients.
155 */
156 char *mhlproc = NMHLIBDIR"/mhl";
157
158 /*
159 ** This program is called to pack a folder.
160 */
161 char *packproc = NMHBINDIR"/packf";
162
163 /*
164 ** This is the delivery program called by send to actually
165 ** deliver mail to users.  This is the interface to the MTS.
166 */
167 char *postproc = NMHLIBDIR"/spost";
168
169 /*
170 ** This is program is called by slocal to handle
171 ** the action `folder' or `+'.
172 */
173 char *rcvstoreproc = NMHLIBDIR"/rcvstore";
174
175 /*
176 ** This program is called to remove a folder.
177 */
178 char *rmfproc = NMHBINDIR"/rmf";
179
180 /*
181 ** This program is called to remove a message by rmm or refile -nolink.
182 ** It's usually empty, which means to rename the file to a backup name.
183 */
184 char *rmmproc = NULL;
185
186 /*
187 ** This program is usually called by the user's whatnowproc, but it
188 ** may also be called directly to send a message previously composed.
189  */
190 char *sendproc = NMHBINDIR"/send";
191
192 /*
193 ** This is the path to the program used by "show"
194 ** to display non-text (MIME) messages.
195 */
196 char *showmimeproc = NMHBINDIR"/mhshow";
197
198 /*
199 ** This is the default program called by "show" to filter
200 ** and display standard text (non-MIME) messages.  It can be
201 ** changed to a pager (such as "more" or "less") if you prefer
202 ** that such message not be filtered in any way.
203 */
204 char *showproc = NMHLIBDIR"/mhl";
205
206 /*
207 ** This program is called after comp, et. al., have built a draft
208 */
209 char *whatnowproc = NMHBINDIR"/whatnow";
210
211 /*
212 ** This is the sendmail interface to use for sending mail.
213 */
214 char *sendmail = SENDMAILPATH;
215
216 /*
217 ** The prefix that is prepended to the name of message files when they
218 ** are "removed" by rmm. This should typically be `,' or `#'.
219 */
220 char *backup_prefix = ",";
221
222 /*
223 ** This is the editor invoked by the various message
224 ** composition programs.  It SHOULD be a full screen
225 ** editor, such as vi or emacs, but any editor will work.
226 */
227 char *defaulteditor = "vi";
228
229 /*
230 ** Name of link to file to which you are replying or which you are
231 ** redistributing. See `$mhaltmsg' in the mh-profile(5) man page.
232 */
233 char *altmsglink = "@";
234
235 /*
236 ** Folders (directories) are created with this protection (mode)
237 */
238 char *foldprot = "700";
239
240 /*
241 ** Every NEW message will be created with this protection.  When a
242 ** message is filed it retains its protection, so this only applies
243 ** to messages coming in through inc.
244 */
245 char *msgprot = "600";
246
247
248
249 /*
250 ** Standard yes/no switches structure
251 */
252 struct swit anoyes[] = {
253         { "no", 0 },
254         { "yes", 0 },
255         { NULL, 0 }
256 };
257