Repository navigation
Expand file tree
/
Copy pathsetup.c
More file actions
1790 lines (1554 loc) · 76.2 KB
/
Copy pathsetup.c
File metadata and controls
1790 lines (1554 loc) · 76.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
** Copyright (C) 1997-2023 Hypermail Project
**
** This program and library is free software; you can redistribute it and/or
** modify it under the terms of the GNU (Library) General Public License
** as published by the Free Software Foundation; either version 3
** of the License, or any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU (Library) General Public License for more details.
**
** You should have received a copy of the GNU (Library) General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#include "hypermail.h"
#ifdef __LCC__
#include "../lcc/defaults.h"
#else
#include "defaults.h"
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#elif defined HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include "setup.h"
#include "struct.h"
#include "print.h"
char *set_fragment_prefix;
char *set_antispam_at;
char *set_htmlmessage_edited;
char *set_htmlmessage_deleted_other;
char *set_htmlmessage_deleted_spam;
char *set_language;
char *set_htmlsuffix;
char *set_mbox;
char *set_archives;
char *set_custom_archives;
char *set_about;
char *set_empty_archive_notice;
char *set_dir;
char *set_defaultindex;
char *set_default_top_index;
char *set_txtsuffix;
char *set_antispamdomain;
bool set_email_address_obfuscation;
bool set_i18n;
bool set_i18n_body;
bool set_overwrite;
bool set_inlinehtml;
bool set_increment;
bool set_readone;
bool set_reverse;
bool set_reverse_folders;
bool set_showprogress;
bool set_warn_deprecated_options;
bool set_showheaders;
bool set_showbr;
bool set_showhr;
bool set_showreplies;
int set_show_msg_links;
int set_show_index_links;
bool set_usetable;
bool set_indextable;
bool set_iquotes;
bool set_eurodate;
bool set_gmtime;
bool set_isodate;
bool set_require_msgids;
bool set_discard_dup_msgids;
bool set_dry_run;
bool set_usemeta;
bool set_userobotmeta;
bool set_uselock;
bool set_ietf_mbox;
bool set_linkquotes;
bool set_monthly_index;
bool set_yearly_index;
bool set_spamprotect;
bool set_spamprotect_id;
bool set_attachmentsindex;
bool set_usegdbm;
bool set_writehaof;
bool set_append;
char *set_append_filename;
bool set_nonsequential;
bool set_warn_suppressions;
bool set_files_by_thread;
bool set_href_detection;
bool set_mbox_shortened;
bool set_report_new_file;
bool set_report_new_folder;
bool set_use_sender_date;
bool set_inline_addlink;
bool set_applemail_mimehack;
char *set_applemail_ua_header;
int set_showhtml;
int set_thrdlevels;
int set_max_attach_per_msg;
int set_dirmode;
int set_filemode;
int set_locktime;
int set_searchbackmsgnum;
int set_quote_hide_threshold;
int set_thread_file_depth;
int set_startmsgnum;
int set_save_alts;
char *set_alts_text;
char *set_mailcommand;
char *set_newmsg_command;
char *set_replymsg_command;
char *set_inreplyto_command;
char *set_mailto;
char *set_hmail;
char *set_domainaddr;
static char *set_htmlbody;
char *set_icss_url;
char *set_mcss_url;
char *set_default_css_url;
char *set_label;
char *set_dateformat;
char *set_indexdateformat;
char *set_stripsubject;
char *set_link_to_replies;
char *set_quote_link_string;
struct hmlist *set_text_types = NULL;
struct hmlist *set_inline_types = NULL;
struct hmlist *set_prefered_types = NULL;
struct hmlist *set_ignore_types = NULL;
struct hmlist *set_show_headers = NULL;
struct hmlist *set_show_headers_msg_rfc822 = NULL;
struct hmlist *set_skip_headers = NULL;
struct hmlist *set_avoid_indices = NULL;
struct hmlist *set_avoid_top_indices = NULL;
struct hmlist *set_filter_out = NULL;
struct hmlist *set_filter_require = NULL;
struct hmlist *set_filter_out_full_body = NULL;
struct hmlist *set_filter_require_full_body = NULL;
struct hmlist *set_applemail_ua_value;
struct hmlist *set_ignore_content_disposition;
bool set_format_flowed;
bool set_format_flowed_disable_quoted;
char *set_ihtmlheader;
char *set_ihtmlfooter;
char *set_ihtmlhead;
char *set_ihtmlhelpup;
char *set_ihtmlhelplow;
char *set_ihtmlnavbar2up;
char *set_mhtmlheader;
char *set_mhtmlfooter;
char *set_mhtmlnavbar2up;
bool set_archived_on;
bool set_hypermail_colophon;
char *set_attachmentlink;
char *set_unsafe_chars;
char *set_filename_base;
char *set_folder_by_date;
char *set_latest_folder;
char *set_base_url;
char *set_describe_folder;
int set_msgsperfolder;
bool set_iso2022jp;
char *set_default_charset;
bool set_replace_us_ascii_with_utf8;
bool set_noindex_onindexes;
struct hmlist *set_annotated = NULL;
struct hmlist *set_deleted = NULL;
struct hmlist *set_expires = NULL;
struct hmlist *set_delete_msgnum = NULL;
char *set_delete_older;
char *set_delete_newer;
bool set_delete_incremental;
int set_delete_level;
int set_debug_level;
struct Config cfg[] = {
{"fragment_prefix", &set_fragment_prefix, MSG_FRAGMENT_PREFIX, CFG_STRING,
"# put this string before the message number in each URI fragment.\n", FALSE},
{"email_address_obfuscation", &set_email_address_obfuscation, BFALSE, CFG_SWITCH,
"# set to On to enable email address obfuscation using\n"
"# numeric character references.\n",FALSE},
{"i18n", &set_i18n, BTRUE, CFG_SWITCH,
"# Enable I18N features, hypermail must be linked with libiconv.\n",FALSE},
{"i18n_body", &set_i18n_body, BFALSE, CFG_SWITCH,
"# Translate message body into UTF-8. \"i18n\" must be enabled.\n",FALSE},
{"htmlmessage_edited", &set_htmlmessage_edited, NULL, CFG_STRING,
"# Set this to HTML markup you want to appear in the body of manually\n"
"edited messages.\n",FALSE},
{"htmlmessage_deleted_other", &set_htmlmessage_deleted_other, NULL, CFG_STRING,
"# Set this to HTML markup you want to appear in the body of deleted\n"
"# messages (by reasons other than spam).\n",FALSE},
{"htmlmessage_deleted_spam", &set_htmlmessage_deleted_spam, NULL, CFG_STRING,
"# Set this to HTML markup you want to appear in the body of deleted\n"
"# messages (by spam reasons).\n",FALSE},
{"antispam_at", &set_antispam_at, ANTISPAM_AT, CFG_STRING,
"# replace any @ sign with this string, if spam flags enabled.\n", FALSE},
{"language", &set_language, LANGUAGE, CFG_STRING,
"# A two-letter string specifying the language to use!\n"
"# For example 'en' for English.\n", FALSE},
{"htmlsuffix", &set_htmlsuffix, HTMLSUFFIX, CFG_STRING,
"# Use this to specify the html file suffix to be used\n"
"# when Hypermail generates the html files. This is depen-\n"
"# dent on local needs. Do not put a '.' in the value. It\n"
"# would result in \"file..html\", probably not what you want.\n", FALSE},
{"mbox", &set_mbox, NULL, CFG_STRING,
"# This is the mailbox to read messages in from. Set this with\n"
"# a value of NONE to read from standard input.\n", FALSE},
{"ietf_mbox", &set_ietf_mbox, BFALSE, CFG_SWITCH,
"# Set this to On to read mboxes using the IETF convention.\n", FALSE},
{"archives", &set_archives, NULL, CFG_STRING,
"# This will create a link in the archived index pages\n"
"# labeled 'Other mail archives' to the specified URL. Set\n"
"# this to NONE to omit such a link.\n", FALSE},
{"custom_archives", &set_custom_archives, NULL, CFG_STRING,
"# If this variable is defined, a navigation entry will be\n"
"# created below the sorted_by_x list entry, with the text\n"
"# Other mail archives: followed by the value of this variable.\n"
"# Set it to NONE to ommit such an entry.\n", FALSE},
{"about", &set_about, NULL, CFG_STRING,
"# This will create a link in the archived index pages\n"
"# labeled 'About this archive' to the specified URL. Set\n"
"# this to NONE to omit such a link.\n", FALSE},
{"empty_archive_notice", &set_empty_archive_notice, NULL, CFG_STRING,
"# This variable will let you customize both the markup and message you\n"
"# want to be displayed in indices when hypermail process a mailbox\n"
"# where all of its messages have been annotated as either 'spam' or\n"
"# 'deleted'.\n"
"# If not set, hypermail will use a default localized message.\n", FALSE},
{"label", &set_label, NULL, CFG_STRING,
"# Define this as the label to put in archives.\n", FALSE},
{"dir", &set_dir, NULL, CFG_STRING,
"# This is the directory that Hypermail will look for when\n"
"# creating and updating archives. If defined as NONE the\n"
"# directory will have the same name as the input mailbox.\n", FALSE},
{"defaultindex", &set_defaultindex, DEFAULTINDEX, CFG_STRING,
"# This specifies the default index that users can view when\n"
"# entering the archive. Valid types are date, thread, author,\n"
"# subject, and attachment. When using the folder_by_date or\n"
"# msgsperfolder options, this option applies to subdirectories.\n", FALSE},
{"default_top_index", &set_default_top_index, DEFAULT_TOP_INDEX, CFG_STRING,
"# This specifies the default index that users can view when\n"
"# entering the top level of an archive that uses the folder_by_date\n"
"# or msgsperfolder option. Valid types are date, thread, author,\n"
"# subject, attachment, and folders.\n", FALSE},
{"avoid_indices", &set_avoid_indices, NULL, CFG_LIST,
"# This is a list of index files to not generate. Valid types are\n"
"# date, thread, author, and subject. When using the folder_by_date or\n"
"# msgsperfolder options, this option applies to subdirectories.\n", FALSE},
{"avoid_top_indices", &set_avoid_top_indices, NULL, CFG_LIST,
"# This is a list of index files to not generate for the top\n"
"# directory of an archive using the folder_by_date or\n"
"# msgsperfolder option. Valid types are date, thread, author,\n"
"# subject, folders, and attachment.\n", FALSE},
{"overwrite", &set_overwrite, BFALSE, CFG_SWITCH,
"# Set this to On to make Hypermail overwrite existing archives.\n", FALSE},
{"inlinehtml", &set_inlinehtml, BTRUE, CFG_SWITCH,
"# Define to On to make text/html parts to get inlined with the mails.\n"
"# If set to Off, HTML-parts will be stored as separate files.\n"
"# A \"Content-Disposition: attachment;\" line in the mail will\n"
"# cause an HTML-part to be stored as a separate file even if this\n"
"# option is On.\n", FALSE},
{"increment", &set_increment, BFALSE, CFG_INTEGER,
"# Set this to -1 to have hypermail figure out whether the input\n"
"# is entirely new messages to be appended or whether it contains\n"
"# messages that are already in the archive. A value of -1 cannot be\n"
"# used with the mbox_shortened option or with the -i command line\n"
"# option or with mbox = NONE. Set this to 0 to always treat\n"
"# the input as an mbox that contains messages in the archive if the\n"
"# existing archive is not empty.\n"
"# Set this to 1 to append the input to existing archive.\n", FALSE},
{"readone", &set_readone, BFALSE, CFG_SWITCH,
"# Set this to On to specify there is only one message in the input.\n", FALSE},
{"reverse", &set_reverse, BFALSE, CFG_SWITCH,
"# Setting this variable to On will reverse-sort the article\n"
"# entries in the date and thread index files by the\n"
"# date they were received. That is, the most recent messages\n"
"# will appear at the top of the index rather than the other\n"
"# way around.\n", FALSE},
{"reverse_folders", &set_reverse_folders, BFALSE, CFG_SWITCH,
"# Setting this variable to On will reverse-sort the list of\n"
"# folders. That is, the most recent folders will appear at\n"
"# the top of the index rather than the other way around.\n", FALSE},
{"progress", &set_showprogress, INT(PROGRESS), CFG_INTEGER,
"# Set this to 1 or 2 to always show a progress report as\n"
"# Hypermail works. With a setting of 1, hypermail\n"
"# overwrites the progress information relating to attachment\n"
"# creation. With a setting of 2, attachment creation information\n"
"# is listed individually with the number of the message the\n"
"# attachments relate to. This is written to stdout.\n", FALSE},
{"warn_deprecated_options", &set_warn_deprecated_options, BTRUE, CFG_SWITCH,
"# Set this to On to have hypermail warn you if your configuration file\n"
"# has options that have been deprecated or that we plan to deprecate.\n"
"# To remove this warning you can either clean up your configuration file"
"# or add this option with the value Off\n"
"# This option is enabled by default.\n", FALSE},
{"showheaders", &set_showheaders, BFALSE, CFG_SWITCH,
"# Set this to On to show the article header lines in the archived HTML\n"
"# files. These lines typically include the To:, From:, and Subject:\n"
"# information found in most email messages.\n", FALSE},
{"showhtml", &set_showhtml, INT(1), CFG_INTEGER,
"# (THIS OPTION WILL BE POTENTIALLY DEPRECATED IN THE NEXT HYPERMAIL\n"
"# VERSION UNLESS PEOPLE ARE REALLY USING IT. YOU CAN PROBABLY\n"
"# USE CSS TO ACHIEVE THE SAME (AND BETTER) RESULTS\n)"
"# Set this to 1 to show the articles in a proportionally-spaced\n"
"# font rather than a fixed-width (monospace) font.\n"
"# Set this to 2 for more complex conversion to html\n"
"# similar to that in <a href=\"http://www.cs.wustl.edu/~seth/txt2html/\">txt2html.pl</a>.\n"
"# Showhtml = 2 will normally produce nicer looking results than\n"
"# showhtml = 1, and showhtml = 0 will look pretty dull, but\n"
"# 1 and 2 run risks of altering the appearance in undesired ways.\n", FALSE},
{"showbr", &set_showbr, BTRUE, CFG_SWITCH,
"# Set this to On to place <br /> tags at the end of article lines.\n"
"# Otherwise, all non-quoted article lines will word wrap. This\n"
"# only takes effect if hm_showhtml is 1.\n", FALSE},
{"showhr", &set_showhr, BFALSE, CFG_SWITCH,
"# (DEPRECATED AND IGNORED)\n"
"# Set this to On to place horizontal rules before and after articles.\n"
"# NOTE: THIS OPTION HAS BEEN DEPRECATED BY THE HTML5 and WAI CHANGES.\n"
"# IT WILL BE IGNORED.\n", FALSE},
{"showreplies", &set_showreplies, BTRUE, CFG_SWITCH,
"# Set this to On to show all replies to a message as links\n"
"# in article files.\n", FALSE},
{"show_msg_links", &set_show_msg_links, INT(1), CFG_INTEGER,
"# Set this to 1 to put the individual message links at the top\n"
"# of the individual message pages. Set this to 0 to produce pages\n"
"# without the Next, Previous, Reply, In-Reply-To, etc. links. Set\n"
"# it to 3 to produce those links only at the top of the message\n"
"# pages, or 4 to produce those links only at the bottom of the\n"
"# message.\n", FALSE},
{"show_index_links", &set_show_index_links, INT(1), CFG_INTEGER,
"# Set this to 1 to show links to index pages from the top and\n"
"# bottom of each message file. Set it to 0 to avoid those links.\n"
"# Set it to 3 to show the links only at the top of the message\n"
"# pages, or 4 to produce those links only at the bottom of the\n"
"# message.\n", FALSE},
{"usetable", &set_usetable, BFALSE, CFG_SWITCH,
"# (DEPRECATED AND IGNORED)\n"
"# Setting this variable to On will tell Hypermail to generate\n"
"# an index menu at the top and bottom of each page in a table\n"
"# format. Set to Off if you want the standard Hypermail page look\n"
"# and feel\n"
"# NOTE: THIS OPTION HAS BEEN DEPRECATED BY THE WAI CHANGES. IT WILL BE\n"
"# IGNORED.\n", FALSE},
/* removed in 2.2.25 */
/*
{"indextable", &set_indextable, BFALSE, CFG_SWITCH,
"# Setting this variable to On will tell Hypermail to generate\n"
"# message index Subject/Author/Date listings using a nice table\n"
"# format. Set to Off if you want the original Hypermail index look.\n", FALSE},
*/
{"iquotes", &set_iquotes, BFALSE, CFG_SWITCH,
"# (DEPRECATED AND IGNORED)\n"
"# You can achieve this effect using the css quote and quotelev classes.\n"
"# Check docs/hypermail.css.\n"
"# Set this to On to italicize quoted lines.\n", FALSE},
{"eurodate", &set_eurodate, BFALSE, CFG_SWITCH,
"# Set this to On to display article received dates with\n"
"# days before months instead of months before days.\n", FALSE},
{"isodate", &set_isodate, BFALSE, CFG_SWITCH,
"# Set this to On to display article received dates in\n"
"# YYYY-MM-DD HH:MM:SS format. If used with the gmtime option, a\n"
"# Z will be inserted between the DD and HH.\n", FALSE},
{"gmtime", &set_gmtime, BFALSE, CFG_SWITCH,
"# Set this to On to display article received dates using\n"
"# Greenwich Mean Time (UTC) rather than local time.\n", FALSE},
{"discard_dup_msgids", &set_discard_dup_msgids, BTRUE, CFG_SWITCH,
"# Set this to Off to accept messages with a Message-ID matching\n"
"# that of a message already in this archive.\n"
"# By default such messages are discarded.\n", FALSE},
{"require_msgids", &set_require_msgids, BTRUE, CFG_SWITCH,
"# Set this to Off to accept messages without a Message-ID header.\n"
"# By default such messages are discarded.\n", FALSE},
{"dry_run", &set_dry_run, BFALSE, CFG_SWITCH,
"# Set this to On if you want to do a dry-run of hypermail,\n"
"# This will output to stdout the archive filenames and their\n"
"# associated Message-ID that hypermail would have created.\n"
"# This can be useful to detect differences between two hypermail\n"
"# versions.\n", FALSE},
{"usemeta", &set_usemeta, BFALSE, CFG_SWITCH,
"# Set this to On to store the content type of a MIME attachment in\n"
"# a metadata file.\n", FALSE},
{"userobotmeta", &set_userobotmeta, BFALSE, CFG_SWITCH,
"# Set this to On to apply a robot annotation to a MIME attachment in\n"
"# a metadata file, using the experimental X-Robots-Tag HTTP header.\n", FALSE},
{"uselock", &set_uselock, BTRUE, CFG_SWITCH,
"# Set this to On to use hypermail's internal locking mechanism.\n", FALSE},
{"usegdbm", &set_usegdbm, BFALSE, CFG_SWITCH,
"# Set this to On to use gdbm to implement a header cache.\n"
"# This will speed up hypermail, especially if your filesystem is slow.\n"
"# It will not provide any speedup with the linkquotes option.\n"
#ifndef GDBM
"# (This particular binary has been build with GDBM disabled.)\n"
#endif
, FALSE},
{"writehaof", &set_writehaof, BFALSE, CFG_SWITCH,
"# Set this to On to let hypermail write an XML archive overview file\n"
"# in each directory. The filename is " HAOF_NAME ".\n", FALSE},
{"append", &set_append, BFALSE, CFG_SWITCH,
"# Set this to On to maintain a parallel mbox archive. The file\n"
"# name defaults to mbox in the directory specified by -d or dir.\n", FALSE},
{"append_filename", &set_append_filename, NULL, CFG_STRING,
"# Specifies the filename to be used by the append option.\n"
"# $DIR may be used to specify a name relative to the directory\n"
"# specified in the -d or dir option.\n"
"# The string will be passed to strftime(3) to allow splitting the\n"
"# mailbox into yearly or monthy files, such as \"%Y-%m.mbox\".\n" , FALSE},
{"nonsequential", &set_nonsequential, BFALSE, CFG_SWITCH,
"# Set this to On to generate filenames that are not sequential, but\n"
"# rather a hash of the message properties.\n"
#ifndef HAVE_LIBFNV
"# (This particular binary has been build with LIBFNV disabled.\n"
"# This option won't work)\n"
#endif
, FALSE},
{"thrdlevels", &set_thrdlevels, INT(4), CFG_INTEGER,
"# This specifies the number of thread levels to outline\n"
"# in the thread index.\n", FALSE},
{"max_attachments_per_msg", &set_max_attach_per_msg, INT(200), CFG_INTEGER,
"# This specifies the maximum number of attachments that will be\n"
"# processed for a message. Any attachments beyond this limit\n"
"# will be ignored.\n"
"# Set to 0 to remove this limit.\n"
"# Note that if you remove this limit or set it too high,\n"
"# memory usage may increase when parsing a message made up\n"
"# of hundreds of attachments.\n"
"# Default value: 200.\n", FALSE},
{"dirmode", &set_dirmode, INT(0755), CFG_OCTAL,
"# This is an octal number representing the permissions\n"
"# that new directories are set to when they are created.\n", FALSE},
{"filemode", &set_filemode, INT(0644), CFG_OCTAL,
"# This is an octal number representing the file permissions\n"
"# that new files are set to when they are created.\n", FALSE},
{"mailcommand", &set_mailcommand, MAILCOMMAND, CFG_STRING,
"# This specifies the mail command to use when converting\n"
"# email addresses to links. The variables $TO, $SUBJECT,\n"
"# and $ID can be used in constructing the command string.\n", FALSE},
{"mailto", &set_mailto, NULL, CFG_STRING,
"# The address of the contact point that is put in the HTML header\n"
"# line <link rev=made href=\"mailto:MAILTO\">. Setting this to NONE\n"
"# disables <link...> header generation.\n", FALSE},
{"hmail", &set_hmail, NULL, CFG_STRING,
"# Set this to the list's submission address.\n", FALSE},
{"newmsg_command", &set_newmsg_command, NEW_MSG_COMMAND, CFG_STRING,
"# This specifies the mail command to use when converting the\n"
"# set_hmail address to links in replies. The variables $TO, $SUBJECT,\n"
"# and $ID can be used in constructing the command string.\n", FALSE},
{"replymsg_command", &set_replymsg_command, REPLYMSG_COMMAND, CFG_STRING,
"# This specifies the mail command to use when converting the\n"
"# set_hmail address to links in replies. The variables $TO, $SUBJECT,\n"
"# and $ID can be used in constructing the command string. The value\n"
"# from mailcommand will be used if this option is not specified.\n", FALSE},
{"inreplyto_command", &set_inreplyto_command, NULL, CFG_STRING,
"# This gives a URI template to a script that hypermail will link to\n"
"# if it's unable to find in the archive's messages the MID corresponding\n"
"# to an In-Reply-To header. The variable $ID is used to specify where the\n"
"# Message-Identifier value will appear in the link.\n", FALSE},
{"domainaddr", &set_domainaddr, DOMAINADDR, CFG_STRING,
"# Set this to the domainname you want added to a mail address\n"
"# appearing in the RFC822 field which lack a hostname.\n", FALSE},
{"body", &set_htmlbody, NULL, CFG_STRING,
"# This obsolete entry kept around to help warn users with old config files.\n", FALSE},
{"icss_url", &set_icss_url, NULL, CFG_STRING,
"# Specifies a URL to an external CSS stylesheet for the index pages.\n"
"# The CSS will be associated to the indexes thru an HTML LINK element.\n"
, FALSE},
{"mcss_url", &set_mcss_url, NULL, CFG_STRING,
"# Specifies a URL to an external CSS stylesheet for the message pages.\n"
"# The CSS will be associated to the indexes thru an HTML LINK element.\n"
, FALSE},
{"default_css_url", &set_default_css_url, DEFAULT_CSS_URL, CFG_STRING,
"# Specifies the default URL for the CSS file used by hypermail if either\n"
"# icss_url or mcss_url are not declared.\n"
"# \n"
"# Note: if you don't specify this url, hypermail will use by default\n"
"# \"" DEFAULT_CSS_URL "\", a local link relative to the archive.\n"
"# In this case, if \"" DEFAULT_CSS_URL "\", doesn't exist, hypermail will\n"
"# create it, and populate with its default style.\n", FALSE},
{"text_types", &set_text_types, NULL, CFG_LIST,
"# This is a list of MIME types that you want hypermail to treat\n"
"# exactly as if they were text/plain.\n", FALSE},
{"inline_types", &set_inline_types, INLINE_TYPES, CFG_LIST,
"# This is the list of MIME types that you want <img> tags to as\n"
"# opposed to simply <a href> to from the message.\n", FALSE},
{"inline_addlink", &set_inline_addlink, BTRUE, CFG_SWITCH,
"# Set to On to add inline links to content that is stored in the\n"
"# attachments subdirectory. 'inline_types' must be enabled.\n", FALSE},
{"prefered_types", &set_prefered_types, NULL, CFG_LIST,
"# When mails using multipart/mixed types are scanned, this list of\n"
"# MIME types defines which part you want presented in the result.\n"
"# See the save_alts option for how non prefered types are treated.\n", FALSE},
{"ignore_types", &set_ignore_types, NULL, CFG_LIST,
"# This is the list of MIME attachment types that you do not want\n"
"# to do anything with. Two special types may be used here:\n"
"# $BINARY - ignore all types that would be stored as separate files.\n"
"# $NONPLAIN - ignore all types not treated as text/plain, and all\n"
"# $BINARY types.\n"
"# Note: the behavior of these may be affected by the inlinehtml\n"
"# option.\n", FALSE},
{"ignore_content_disposition", &set_ignore_content_disposition, NULL, CFG_LIST,
"# Set to the list of MIME types/subtypes for which you want to ignore\n"
"# the Content-Disposition: header.\n"
"# This is useful if you're dealing with old Apple Mail messages as they\n"
"# were wrongly using Content-Disposition: attachment for\n"
"# multipart/appledouble (Apple fixed this later on).\n", FALSE},
{"applemail_mimehack", &set_applemail_mimehack, BFALSE, CFG_SWITCH,
"# Set to On to process Apple Mail MIME multipart/alternative\n"
"# as if the save_alts was enabled. If the message contains only\n"
"# a text/plain and a text/html alternatives, the text/plain one will\n"
"# be kept and the text/html alternative will be discared. If the\n"
"# message contains text/plain and another kind of alternative, such as\n"
"# multipart/mixed or multipart/related, all the alternative elements\n"
"# be displayed. This is to take into account Apple Mail's MIME format\n"
"# where attachments are associated by default with the text/html alternative.\n"
"# Use this option if you're using text/plain as a prefered type.\n"
"# This option is ignored if save_alts is enabled or if text/html is\n"
"# the prefered type.", FALSE},
{"applemail_ua_header", &set_applemail_ua_header, APPLE_MAIL_UA_HEADER, CFG_STRING,
"# Set to the header name that Apple Mail uses to identify its mail agent.\n"
"# This option is only useful if you enabled the\n"
"# applemail_mimehack configuration option.\n", FALSE},
{"applemail_ua_value", &set_applemail_ua_value, APPLE_MAIL_UA, CFG_LIST,
"# Set to the list of the header value that Apple Mail uses to identify\n"
"# its mail agent. Do not add the version number unless you know what\n"
"# you're doing.\n"
"# This option is only useful if you enabled the\n"
"# applemail_mimehack configuration option.\n", FALSE},
{"show_headers", &set_show_headers, NULL, CFG_LIST,
"# This is the list of headers to be displayed if 'showheaders'\n"
"# is set to On. They can be listed comma or space separated\n"
"# all on a single line.\n", FALSE},
{"show_headers_msg_rfc822", &set_show_headers_msg_rfc822, NULL, CFG_LIST,
"# This is the list of headers to be displayed in a message/rfc822\n"
"# attachment if 'showheaders' is set to On. They can be listed\n"
"# comma or space separated all on a single line.\n"
"# \n"
"# If this directive is not used, hypermail will use show_headers\n"
"# when dealing with message/rfc822 attachments.\n", FALSE},
{"format_flowed", &set_format_flowed, BFALSE, CFG_SWITCH,
"# (EXPERIMENTAL)\n"
"# Enable support for RFC3676 format=flowed\n", FALSE},
{"format_flowed_disable_quoted", &set_format_flowed_disable_quoted, BFALSE, CFG_SWITCH,
"# (EXPERIMENTAL)\n"
"# If format_flowed is enabled, this option allows you to disable\n"
"# format=flowed inside quoted text\n", FALSE},
{"ihtmlheaderfile", &set_ihtmlheader, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included at the top of every index page.\n", FALSE},
{"ihtmlfooterfile", &set_ihtmlfooter, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included at the bottom of every index page.\n", FALSE},
{"ihtmlheadfile", &set_ihtmlhead, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included inside the HTML HEAD element of every index page.\n", FALSE},
{"ihtmlhelpupfile", &set_ihtmlhelpup, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included as information giving help to your archive users\n,"
"# in the upper navigation bar.\n", FALSE},
{"ihtmlhelplowfile", &set_ihtmlhelplow, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included as information giving help to your archive users\n,"
"# in the lower navigation bar.\n", FALSE},
{"ihtmlnavbar2upfile", &set_ihtmlnavbar2up, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to\n"
"# included as information in your indexes,\n"
"# giving links to the hierarchy in your archive.\n", FALSE},
{"mhtmlheaderfile", &set_mhtmlheader, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to use\n"
"# at the top of every message page.\n", FALSE},
{"mhtmlfooterfile", &set_mhtmlfooter, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements you wish to use at the\n"
"# bottom of every message page.\n", FALSE},
{"mhtmlnavbar2upfile", &set_mhtmlnavbar2up, NULL, CFG_STRING,
"# Define path as the path to a template file containing\n"
"# valid HTML formatting statements that you wish to be\n"
"# included as information in each archived message,\n"
"# giving links to the hierarchy of your archive.\n"
"# By default uses the value of ihtmlnavbar2upfile,\n"
"# If neither this config option nor ihtmlnavbar2upfile are\n"
"# defined in the config file, hypermail will use\n"
"# a generic navbar using the name of the archive, linking\n"
"# back to the default index of the archive (index.html)\n", FALSE},
{"locktime", &set_locktime, INT(3600), CFG_INTEGER,
"# Specify number of seconds to wait for a lock before we\n"
"# override it! .\n", FALSE},
{"dateformat", &set_dateformat, NULL, CFG_STRING,
"# Format (see strftime(3)) for displaying dates.\n", FALSE},
{"indexdateformat", &set_indexdateformat, NULL, CFG_STRING,
"# Format (see strftime(3)) for displaying dates in the index pages.\n"
"# Will use dateformat if not specified.\n", FALSE},
{"archive_date", &set_archived_on, BFALSE, CFG_SWITCH,
"# Adds a specific line in the indexes giving the date the archive was\n"
"# generated.\n", FALSE},
{"hypermail_colophon", &set_hypermail_colophon, BTRUE, CFG_SWITCH,
"# Adds a line stating that the archive was generated by hypermail\n"
"# as well as the generation date.\n", FALSE},
{"stripsubject", &set_stripsubject, NULL, CFG_STRING,
"# A word to be stripped from all subject lines. Helps unclutter\n"
"# mailing lists which add tags to subject lines.\n", FALSE},
{"attachmentlink", &set_attachmentlink, NULL, CFG_STRING,
"# Format of the attachment links.\n"
"# %p for the full path to the attachment\n"
"# %f for the file name part only\n"
"# %d for the directory name only\n"
"# %n for the message number\n" "# %c for the content type string\n", FALSE},
{"spamprotect", &set_spamprotect, BTRUE, CFG_SWITCH,
"# Set this to On to make hypermail not output real email addresses\n"
"# in the output HTML but instead it will obfuscate them a little.\n"
"# You can control the obfuscation with set_antispamdomain.\n", FALSE},
{"antispamdomain", &set_antispamdomain, NULL, CFG_STRING,
"# By default hypermail only does a small amount of massaging\n"
"# of email addresses. Use this to completely replace the domain\n"
"# from which a message originates (everything after the @)\n"
"# with some string to confuse screen-scraping programs.\n"
"# It is probably wise to make this an invalid mail domain.\n", FALSE},
{"spamprotect_id", &set_spamprotect_id, BTRUE, CFG_SWITCH,
"# Set this to On to make hypermail not output real email message\n"
"# ids in HTML comments (sometimes used internally by hypermail) but\n"
"# instead it will obfuscate them a little so they don't look like\n"
"# email addresses to spammers.\n", FALSE},
{"attachmentsindex", &set_attachmentsindex, BTRUE, CFG_SWITCH,
"# Set this to Off to make hypermail not output an index of\n"
"# messages with attachments.\n", FALSE},
{"linkquotes", &set_linkquotes, BFALSE, CFG_SWITCH,
"# (UNMAINTAINED, MAY BE DEPRECATED) this option has not been working well\n"
"# since 2.4.0 and should now be considered experimental.\n"
"# It may be deprecated in the next version of hypermail.\n"
"# \n"
"# Set this to On to create fine-grained links from quoted\n"
"# text to the text where the quote originated. It also improves\n"
"# the threads index file by more accurately matching messages\n"
"# with replies. Note that this may be rather cpu intensive (see\n"
"# the searchbackmsgnum option to alter the performance).\n", FALSE},
{"searchbackmsgnum", &set_searchbackmsgnum, INT(500), CFG_INTEGER,
"# (UNMAINTAINED, MAY BE DEPRECATED)\n"
"# If the linkquotes option is on and an incremental update is being\n"
"# done (-u option), this controls the tradeoff between speed and\n"
"# the reliability of finding the right source for quoted text.\n"
"# Try to set it to the largest number of messages between a\n"
"# message and the final direct reply to that message.\n", FALSE},
{"link_to_replies", &set_link_to_replies, NULL, CFG_STRING,
"# (UNMAINTAINED, MAY BE DEPRECATED)\n"
"# If the linkquotes option is on, specifying a string here\n"
"# causes it to generate links from original quoted text to the\n"
"# location(s) in replies which quote them. The string\n"
"# is used to display the link.\n", FALSE},
{"quote_hide_threshold", &set_quote_hide_threshold, INT(100), CFG_INTEGER,
"# (UNMAINTAINED, MAY BE DEPRECATED)\n"
"# If the linkquotes option is on, setting this to an\n"
"# integer less than 100 will cause it to replace quoted\n"
"# text with one-line links if the percent of lines in the\n"
"# message body (exluding the signature) consisting of\n"
"# quoted text exceeds the number indicated by this option.\n", FALSE},
{"quote_link_string", &set_quote_link_string, NULL, CFG_STRING,
"# (UNMAINTAINED, MAY BE DEPRECATED)\n"
"# If the quote_hide_threshold option is being used, the\n"
"# quote_link_string will be used if available to display the\n"
"# link that replaces the quoted text. If no string is specified\n"
"# here, the first line of each section of quoted text will used.\n", FALSE},
{"monthly_index", &set_monthly_index, BFALSE, CFG_SWITCH,
"# (CODE NEEDS MORE LOVE)\n"
"# Set this to On to create additional index files broken up\n"
"# by month. A summary.html file will provide links to all the\n"
"# monthly indices.\n", FALSE},
{"yearly_index", &set_yearly_index, BFALSE, CFG_SWITCH,
"# (CODE NEEDS MORE LOVE)\n"
"# Set this to On to create additional index files broken up\n"
"# by year. A summary.html file will provide links to all the\n"
"# yearly indices.\n", FALSE},
{"thread_file_depth", &set_thread_file_depth, INT(0), CFG_INTEGER,
"# If nonzero, break the threads index file into multiple files,\n"
"# with the initial message of each thread in the main index file\n"
"# along with links to files containing the replies. Setting this\n"
"# to 1 creates one file for each thread that has replies, and is\n"
"# recommended for archives with over a few hundred messages.\n"
"# Setting this greater than 1 will produce multiple levels of files\n"
"# for each thread whose replies are nested by more than 1 level,\n"
"# but that is rarely useful. This option is currently disabled\n"
/* indextable was removed in 2.2.25 */
/*
"# if the indextable option is turned on, and probably needs to\n"
"# be less than thrdlevels.\n"
*/
, FALSE},
{"startmsgnum", &set_startmsgnum, INT(0), CFG_INTEGER,
"# Sets the number of the first message of an archive. This option is\n"
"# only active when adding new messages to brand new archive.\n"
"# If not set, the default number will be 0000.\n"
"# Note that if you change this setting, you are stuck with it. If you\n"
"# rebuild your archive, you must use the same value or you'll break any\n"
"# link pointing to your archive.\n", FALSE},
{"folder_by_date", &set_folder_by_date, NULL, CFG_STRING,
"# This string causes the messages to be put in subdirectories\n"
"# by date. The string will be passed to strftime(3) to generate\n"
"# subdirectory names based on message dates. Suggested values are\n"
"# \"%y%m\" or \"%b%y\" for monthly subdirectories, \"%Y\" for\n"
"# yearly, \"%G/%V\" for weekly. Do not alter this for an existing\n"
"# archive without removing the old html files. If you use this\n"
"# and update the archive incrementally (e.g. with -u), you must\n"
"# use the usegdbm option.\n", FALSE},
{"msgsperfolder", &set_msgsperfolder, INT(0), CFG_INTEGER,
"# Put messages in subdirectories with this many messages per\n"
"# directory. Do not use this and folder_by_date on the same archive.\n"
"# Do not alter this for an existing archive without removing the old\n"
"# html files. Deleted/expired messages ARE COUNTED for the purpose\n"
"# of deciding how many messages to put in a subdirectory.\n", FALSE},
{"describe_folder", &set_describe_folder, NULL, CFG_STRING,
"# Controls the labels used in folders.html to describe the\n"
"# directories created by the folder_by_date or msgsperfolder\n"
"# options. For folder_by_date labels, the describe_folder string\n"
"# will be passed to strftime(3) the same as the folder_by_date string.\n"
"# For msgsperfolder:\n"
"# %d for the directory number (starts with 0)\n"
"# %D for the directory number (starts with 1)\n"
"# %m for the number of the first message in the directory\n"
"# %M for the number of the last message that can be put in the\n"
"# directory.\n", FALSE},
{"latest_folder", &set_latest_folder, NULL, CFG_STRING,
"# If folder_by_date or msgsperfolder are in use, create\n"
"# a symbolic link by this name to the most recently created\n"
"# subdirectory. Note that many web servers are configured to\n"
"# not follow symbolic links for security reasons. The link will\n"
"# be created in the directory specified by the 'dir' or '-d' option.\n",
FALSE},
{"base_url", &set_base_url, NULL, CFG_STRING,
"# The url of the archive's main directory. This is needed when\n"
"# the latest_folder option is used and the folder_by_date makes\n"
"# directories more than one level deep (e.g. with '%y/%m').\n", FALSE},
{"iso2022jp", &set_iso2022jp, BFALSE, CFG_SWITCH,
"# Set this to On to support ISO-2022-JP messages.\n", FALSE},
{"override_default_charset", &set_default_charset, DEFAULT_CHARSET, CFG_STRING,
"# (EXPERIMENTAL)\n"
"# Set this to to override the default " DEFAULT_CHARSET " charset you want to associate\n"
"# with a message that doesn't explcitly specify any charset.\n"
"# Use this only with legacy archives that you know to be in a given\n"
"# charset but that have no charset attribute.\n"
"# \n"
"# Note that the only thing that will be converted are headers,\n"
"# the message body won't be affected.\n", FALSE},
{"replace_us_ascii_with_utf8", &set_replace_us_ascii_with_utf8, BFALSE, CFG_SWITCH,
"# (EXPERIMENTAL)\n"
"# Setting this to on will tell the parser to explicitly replace a messages\n"
"# charset with UTF-8 if the original's message was US-ASCII.\n"
"# Note that there will be no convertion of the message's body to UTF-8.\n"
"# \n"
"# Indeed, US-ASCII is a subset of UTF-8 and directly mappable without need for\n"
"# any convertion. However, multipart messages can be complex and each part can\n"
"# be associated with a different charset and there's no guarantee the resulting\n"
"# message will have a valid charset. Hypermail is lacking in this aspect.\n"
"# default value: Off.\n", FALSE},
{"noindex_onindexes", &set_noindex_onindexes, BFALSE, CFG_SWITCH,
"# Set to On to inform search engines that you don't want to index\n"
"# the hypermail generated indexes. See the \"annotated\" configuration"
"# option for a more detailed description.\n", FALSE},
{"annotated", &set_annotated, HM_ANNOTATION_HEADER, CFG_LIST,
"# This is the list of headers that indicate that a message was annotated.\n"
"# When a message contains such a header, the header may have one more comma\n"
"# separated values indicatating the annotation type. Order and case are\n"
"# not important.\n"
"# The possible values of this header are: content and robot annotations.\n"
"# Content annotations can have only one of the following values:\n"
"# spam : message deleted because it is spam;\n"
"# deleted : message deleted, other reasons;\n"
"# edited : original received message was manually edited.\n"
"# You can customize the markup that\'s shown for content annotations\n"
"# by means of the htmlmessage_deleted_other, htmlmessage_deleted_spam,\n"
"# htmlmessage_edited directives.\n\n"
"# robot annotations can have either one or both of the following values:\n"
"# nofollow : do not follow the links on this page;\n"
"# noindex : prevent search engines from indexing the contents of this message.\n"
"# Robot annotations instruct a visiting web robot agent if a message contents\n"
"# should be indexed and/or if the outgoing links from the message\n"
"# should be followed, doing so thru a specific HTML meta tag. You can use one or\n"
"# both values and combine them with the edited content annotation.\n"
"# NOTE: Spam or deleted annotation values have an implicit robot \"noindex\"\n"
"# annotation In such case, user supplied robot annotations values will be\n"
"# silently ignored.\n", FALSE},
{"deleted", &set_deleted, HM_DELETED_HEADERS, CFG_LIST,
"# (DEPRECATED)\n"
"# NOTE: this option has been deprecated by annotated, but it will continue\n"
"# being parsed and honored for legacy reasons.\n"
"# This is the list of headers that indicate the message should\n"
"# not be displayed if the value of this header is 'yes'.\n", FALSE},
{"expires", &set_expires, EXPIRES_HEADER, CFG_LIST,
"# This is the list of headers that indicate the message should\n"
"# not be displayed if the value of this header is a date in the past.\n", FALSE},
{"delete_older", &set_delete_older, NULL, CFG_STRING,
"# Any message older than this date should not be displayed.\n", FALSE},
{"delete_newer", &set_delete_newer, NULL, CFG_STRING,
"# Any message newer than this date should not be displayed.\n", FALSE},
{"delete_msgnum", &set_delete_msgnum, NULL, CFG_LIST,
"# This is the list of message numbers that should be deleted from the\n"
"# html archive. The mbox is not changed.\n", FALSE},
{"delete_incremental", &set_delete_incremental, BTRUE, CFG_SWITCH,
"# If this option is enabled, hypermail will perform deletions on old\n"
"# messages when run in incremental mode (according to the other delete\n"
"# configuring option). Note that depending on your hypermail setup,\n"
"# the size of the archive, and the complexity of the markup,\n"
"# there may be memory and parsing issues, specifically when there are\n"
"# non-deleted replies to a deleted message.\n"
"# If this option is disabled, deleted messages will only be removed\n"
"# when rebuilding the whole archive.\n", FALSE},
{"delete_level", &set_delete_level, INT(DELETE_LEAVES_STUBS), CFG_INTEGER,
"# 0 - remove deleted and expired files. Note that with this choice\n"
"# threading may be screwed up if there are replies to deleted or\n"
"# expired options and the archive is updated incrementally\n"
"# 1 - remove message body\n"
"# 2 - remove message body for deleted messages, leave expired messages\n"
"# 3 - leave all messages\n"
"# Deleted and expired messages are removed from the index files\n"
"# regardless of the delete_level selection.\n", FALSE},
{"txtsuffix", &set_txtsuffix, NULL, CFG_STRING,
"# If you want the original mail messages archived in individual files,\n"
"# set this to the extension that you want these messages to have\n"
"# (recommended value: txt).\n", FALSE},
{"filter_out", &set_filter_out, NULL, CFG_STRINGLIST,
"# Delete from the html archives any message having a header line\n"
"# which matches any of these expressions. Uses the same rules for\n"
"# deletion as the expires option. The expressions use the same\n"
"# syntax as Perl regular expressions.\n", FALSE},
{"filter_require", &set_filter_require, NULL, CFG_STRINGLIST,
"# Delete from the html archives any message not having header lines\n"
"# which match each of these expressions. Uses the same rules for\n"
"# deletion as the expires option. The expressions use the same\n"
"# syntax as Perl regular expressions.\n", FALSE},
{"filter_out_full_body", &set_filter_out_full_body, NULL, CFG_STRINGLIST,
"# Delete from the html archives any message having a line\n"
"# which matches any of these expressions. Uses the same rules for\n"
"# deletion as the expires option. The expressions use the same\n"
"# syntax as Perl regular expressions.\n", FALSE},
{"filter_require_full_body", &set_filter_require_full_body, NULL, CFG_STRINGLIST,
"# Delete from the html archives any message not having lines\n"
"# which match each of these expressions. Uses the same rules for\n"
"# deletion as the expires option. The expressions use the same\n"