Schema.pm 235 KB
Newer Older
1
2
3
4
5
# -*- indent-tabs-mode: nil; -*-
# vim:ft=perl:et:sw=4

# Sympa - SYsteme de Multi-Postage Automatique
#
6
7
# Copyright 2020, 2021 The Sympa Community. See the
# AUTHORS.md file at the top-level directory of this distribution and at
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
# <https://github.com/sympa-community/sympa.git>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

package Sympa::Config::Schema;

use strict;
use warnings;

use Sympa::Constants;
use Sympa::Regexps;

# Parameter defaults
my %default = (
    occurrence => '0-1',
    length     => 25
);

# DEPRECATED. No longer used.
#our @param_order;

# List parameter alias names
# DEPRECATED.  Use 'obsolete' elements.
#our %alias;

our %pgroup = (
    presentation => {
        order           => 1,
        gettext_id      => 'Service description',
        gettext_comment => '',
    },
    database => {
        order           => 2,
        gettext_id      => 'Database related',
        gettext_comment => '',
    },
    logging => {
        order           => 3,
        gettext_id      => 'System log',
        gettext_comment => '',
    },
    mta => {
        order => 4,
        #gettext_id      => 'Alias management',
        gettext_id      => 'Mail server',
        gettext_comment => '',
    },
    description => {
        order           => 10,
        gettext_id      => 'List definition',
        gettext_comment => '',
    },
    incoming => {
        order           => 19,
        gettext_id      => 'Receiving',
        gettext_comment => '',
    },
    sending => {
        order => 20,
        #gettext_id      => 'Sending related',
        gettext_id      => 'Sending/receiving setup',
        gettext_comment => '',
    },
    outgoing => {
        order           => 21,
        gettext_id      => 'Distribution',
        gettext_comment => '',
    },
    command => {
        order           => 30,
        gettext_id      => 'Privileges',
        gettext_comment => '',
    },
    archives => {
        order           => 40,
        gettext_id      => 'Archives',
        gettext_comment => '',
    },
    bounces => {
        order => 50,
        #gettext_id      => 'Bounce management and tracking',
        gettext_id      => 'Bounces',
        gettext_comment => '',
    },

    loop_prevention => {
        order           => 51,
        gettext_id      => 'Loop prevention',
        gettext_comment => '',
    },
    automatic_lists => {
        order           => 52,
        gettext_id      => 'Automatic lists',
        gettext_comment => '',
    },
    antispam => {
        order           => 53,
        gettext_id      => 'Tag based spam filtering',
        gettext_comment => '',
    },
    directories => {
        order           => 54,
        gettext_id      => 'Directories',
        gettext_comment => '',
    },
    other => {
        order           => 90,
        gettext_id      => 'Miscellaneous',
        gettext_comment => '',
    },

    www_basic => {
        order           => 110,
        gettext_id      => 'Web interface parameters',
        gettext_comment => '',
    },
    www_appearances => {
        order           => 120,
        gettext_id      => 'Web interface parameters: Appearances',
        gettext_comment => '',
    },
    www_other => {
        order           => 190,
        gettext_id      => 'Web interface parameters: Miscellaneous',
        gettext_comment => '',
    },

    crypto => {
        order      => 59,
        gettext_id => 'S/MIME and TLS',
        gettext_comment =>
            "S/MIME authentication, decryption and re-encryption. It requires these external modules: Crypt-OpenSSL-X509 and Crypt-SMIME.\nTLS client authentication. It requires an external module: IO-Socket-SSL.",
    },
    data_source => {
        order      => 60,
        gettext_id => 'Data sources setup',
        gettext_comment =>
            'Including subscribers, owners and moderators from data sources. Appropriate database driver (DBD) modules are required: DBD-CSV, DBD-mysql, DBD-ODBC, DBD-Oracle, DBD-Pg, DBD-SQLite and/or Net-LDAP. And also, if secure connection (LDAPS) to LDAP server is required: IO-Socket-SSL.',
    },
    dkim => {
        order => 70,
        #gettext_id => 'DKIM and ARC',
        gettext_id => 'DKIM/DMARC/ARC',
        gettext_comment =>
            "DKIM signature verification and re-signing. It requires an external module: Mail-DKIM.\nARC seals on forwarded messages. It requires an external module: Mail-DKIM.",
    },
    dmarc_protection => {    #FIXME: Not used?
        order      => 71,
        gettext_id => 'DMARC protection',
        gettext_comment =>
            'Processes originator addresses to avoid some domains\' excessive DMARC protection. This feature requires an external module: Net-DNS.',
    },

    list_check => {
        order      => 72,
        gettext_id => 'List address verification',
        gettext_comment =>
            'Checks if an alias with the same name as the list to be created already exists on the SMTP server. This feature requires an external module: Net-SMTP.',
    },
    antivirus => {
        order           => 73,
        gettext_id      => 'Antivirus plug-in',
        gettext_comment => '',
    },

    password_validation => {
        order      => 153,
        gettext_id => 'Password validation',
        gettext_comment =>
            'Checks if the password the user submitted has sufficient strength. This feature requires an external module: Data-Password.',
    },
    ldap_auth => {
        order      => 154,
        gettext_id => 'Authentication with LDAP',
        gettext_comment =>
            'Authenticates users based on the directory on LDAP server. This feature requires an external module: Net-LDAP. And also, if secure connection (LDAPS) is required: IO-Socket-SSL.',
    },
    sympasoap => {
        order      => 156,
        gettext_id => 'SOAP HTTP interface',
        gettext_comment =>
            'Provides some functions of Sympa through the SOAP HTTP interface. This feature requires an external module: SOAP-Lite.',
    },

    _obsoleted => {
        order           => 99999,
        gettext_id      => 'Obsoleted parameters',
        gettext_comment => '',
    },
);

my $site_obsolete =
    {context => [qw(site)], group => '_obsoleted', obsolete => 1};

our %pinfo = (

    # Initial configuration

    domain => {
        context => [qw(domain site)],    #FIXME:not used in robot.conf.
        order   => 1.01,
        group   => 'presentation',
        gettext_id => 'Primary mail domain name',
        format     => '[-\w]+(?:[.][-\w]+)+',
        sample     => 'mail.example.org',
        occurrence => '1',
    },
    listmaster => {
        context    => [qw(domain site)],
        order      => 1.02,
        group      => 'presentation',
        sample     => 'your_email_address@domain.tld',
        gettext_id => 'Email addresses of listmasters',
        split_char => ',',                                #FIXME
        gettext_comment =>
            'Email addresses of the listmasters (users authorized to perform global server commands). Some error reports may also be sent to these addresses. Listmasters can be defined for each virtual host, however, the default listmasters will have privileges to manage all virtual hosts.',
        format_s   => '$addrspec',
        occurrence => '1-n',
    },

    ### Global definition page ###

    supported_lang => {
        context => [qw(domain site)],
        order   => 1.10,
        group   => 'presentation',
        default =>
            'ca,cs,de,el,en-US,es,et,eu,fi,fr,gl,hu,it,ja,ko,nb,nl,oc,pl,pt-BR,ru,sv,tr,vi,zh-CN,zh-TW',
        gettext_id => 'Supported languages',
        split_char => ',',
        gettext_comment =>
            'All supported languages for the user interface. Languages proper locale information not installed are ignored.',
        format => '\w+(\-\w+)*',
    },
    title => {
        context    => [qw(domain site)],
        order      => 1.11,
        group      => 'presentation',
        default    => 'Mailing lists service',
        gettext_id => 'Title of service',
        gettext_comment =>
            'The name of your mailing list service. It will appear in the header of web interface and subjects of several service messages.',
        format => '.+',
        file   => 'wwsympa.conf',
    },
    gecos => {
        context    => [qw(domain site)],
        order      => 1.12,
        group      => 'presentation',
        default    => 'SYMPA',
        gettext_id => 'Display name of Sympa',
        gettext_comment =>
            'This parameter is used for display name in the "From:" header field for the messages sent by Sympa itself.',
        format => '.+',
    },
    legacy_character_support_feature => {
        context    => [qw(site)],
        order      => 1.13,
        group      => 'presentation',
        default    => 'off',
        gettext_id => 'Support of legacy character set',
        gettext_comment =>
            "If set to \"on\", enables support of legacy character set according to charset.conf(5) configuration file.\nIn some language environments, legacy encoding (character set) can be preferred for e-mail messages: for example iso-2022-jp in Japanese language.",
        format => ['on', 'off'],    #XXX
    },

    # Database

    update_db_field_types => {
        context    => [qw(site)],
        order      => 2.01,
        group      => 'database',
        gettext_id => 'Update database structure',
        gettext_comment =>
            "auto: Updates database table structures automatically.\nHowever, since version 5.3b.5, Sympa will not shorten field size if it already have been longer than the size defined in database definition.",
        format  => ['auto', 'off'],
        default => 'auto',
    },
    db_type => {
        context    => [qw(site)],
        order      => 2.10,
        group      => 'database',
        default    => 'mysql',
        gettext_id => 'Type of the database',
        gettext_comment =>
            'Possible types are "MySQL", "PostgreSQL", "Oracle" and "SQLite".',
        format     => '\w+',
        occurrence => '1',
    },
    db_host => {
        context => [qw(site)],
        order   => 2.11,
        group   => 'database',
        #default => 'localhost',
        sample     => 'localhost',
        gettext_id => 'Hostname of the database server',
        gettext_comment =>
            'With PostgreSQL, you can also use the path to Unix Socket Directory, e.g. "/var/run/postgresql" for connection with Unix domain socket.',
        format_s => '$host',
    },
    db_port => {
        context    => [qw(site)],
        order      => 2.12,
        group      => 'database',
        gettext_id => 'Port of the database server',
        format     => '[-/\w]+',
    },
    db_name => {
        context    => [qw(site)],
        order      => 2.13,
        group      => 'database',
        default    => 'sympa',
        gettext_id => 'Name of the database',
        gettext_comment =>
            "With SQLite, this must be the full path to database file.\nWith Oracle Database, this must be SID, net service name or easy connection identifier (to use net service name, db_host should be set to \"none\" and HOST, PORT and SERVICE_NAME should be defined in tnsnames.ora file).",
        format => '.+',
    },
    db_user => {
        context => [qw(site)],
        order   => 2.14,
        group   => 'database',
        #default => 'user_name',
        sample     => 'sympa',
        gettext_id => 'User for the database connection',
        format     => '.+',
    },
    db_passwd => {
        context => [qw(site)],
        order   => 2.15,
        group   => 'database',
        #default => 'user_password',
        sample     => 'your_passwd',
        gettext_id => 'Password for the database connection',
        field_type => 'password',
        gettext_comment =>
            'What ever you use a password or not, you must protect the SQL server (is it not a public internet service ?)',
        format => '.+',
    },
    db_options => {
        context    => [qw(site)],
        order      => 2.16,
        group      => 'database',
        gettext_id => 'Database options',
        gettext_comment =>
            'If these options are defined, they will be appended to data source name (DSN) fed to database driver. Check the related DBD documentation to learn about the available options.',
        format => '.+',
        sample =>
            'mysql_read_default_file=/home/joe/my.cnf;mysql_socket=tmp/mysql.sock-test',
    },
    db_env => {
        context    => [qw(site)],
        order      => 2.17,
        group      => 'database',
        gettext_id => 'Environment variables setting for database',
        gettext_comment =>
            'With Oracle Database, this is useful for defining ORACLE_HOME and NLS_LANG.',
        format => '.+',
        sample =>
            'NLS_LANG=American_America.AL32UTF8;ORACLE_HOME=/u01/app/oracle/product/11.2.0/server',
    },
    db_timeout => {
        context    => [qw(site)],
        order      => 2.18,
        group      => 'database',
        gettext_id => 'Database processing timeout',
        gettext_comment =>
            'Currently, this parameter may be used for SQLite only.',
        format => '\d+',
    },
    db_additional_subscriber_fields => {
        context    => [qw(site)],
        order      => 2.20,
        group      => 'database',
        sample     => 'billing_delay,subscription_expiration',
        gettext_id => 'Database private extension to subscriber table',
        split_char => ',',                                              #FIXME
        gettext_comment =>
            "Adds more fields to \"subscriber_table\" table. Sympa recognizes fields defined with this parameter. You will then be able to use them from within templates and scenarios:\n* for scenarios: [subscriber->field]\n* for templates: [% subscriber.field %]\nThese fields will also appear in the list members review page and will be editable by the list owner. This parameter is a comma-separated list.\nYou need to extend the database format with these fields",
        format     => '.+',
        occurrence => '0-n',
    },
    db_additional_user_fields => {
        context    => [qw(site)],
        order      => 2.21,
        group      => 'database',
        sample     => 'age,address',
        gettext_id => 'Database private extension to user table',
        split_char => ',',                                              #FIXME
        gettext_comment =>
            "Adds more fields to \"user_table\" table. Sympa recognizes fields defined with this parameter. You will then be able to use them from within templates: [% subscriber.field %]\nThis parameter is a comma-separated list.\nYou need to extend the database format with these fields",
        format     => '.+',
        occurrence => '0-n',
    },

    ### System log

    syslog => {
        context         => [qw(site)],
        order           => 3.01,
        group           => 'logging',
        default         => 'LOCAL1',
        gettext_id      => 'System log facility for Sympa',
        gettext_comment => 'Do not forget to configure syslog server.',
        format          => '\S+',
    },
    log_socket_type => {
        context    => [qw(site)],
        order      => 3.02,
        group      => 'logging',
        default    => 'unix',
        gettext_id => 'Communication mode with syslog server',
        format     => '\w+',
    },
    log_level => {
        context    => [qw(domain site)],    #FIXME "domain" possible?
        order      => 3.03,
        group      => 'logging',
        default    => '0',
        sample     => '2',
        gettext_id => 'Log verbosity',
        gettext_comment =>
            "Sets the verbosity of logs.\n0: Only main operations are logged\n3: Almost everything is logged.",
        format => '\d+',
    },

    ### Maili server (alias management & passing to the next hop)

    sendmail => {
        context    => [qw(site)],
        order      => 4.01,
        group      => 'mta',
        default    => '/usr/sbin/sendmail',
        gettext_id => 'Path to sendmail',
        gettext_comment =>
            "Absolute path to sendmail command line utility (e.g.: a binary named \"sendmail\" is distributed with Postfix).\nSympa expects this binary to be sendmail compatible (exim, Postfix, qmail and so on provide it).",
        format => '.+',
    },
    sendmail_args => {
        context    => [qw(site)],
        order      => 4.02,
        group      => 'mta',
        default    => '-oi -odi -oem',
        gettext_id => 'Command line parameters passed to sendmail',
        gettext_comment =>
            "Note that \"-f\", \"-N\" and \"-V\" options and recipient addresses should not be included, because they will be included by Sympa.",
        format => '.+',
    },

    sendmail_aliases => {
        context   => [qw(domain site)],
        order     => 4.03,
        group     => 'mta',
        default_s => '$SENDMAIL_ALIASES',
        gettext_id =>
            'Path of the file that contains all list related aliases',
        gettext_comment =>
            "It is recommended to create a specific alias file so that Sympa never overwrites the standard alias file, but only a dedicated file.\nSet this parameter to \"none\" if you want to disable alias management in Sympa.",
        format => '.+',
    },
    aliases_program => {
        context    => [qw(domain site)],
        order      => 4.04,
        group      => 'mta',
482
        format     => 'makemap|newaliases|postalias|postmap|/.+|none',
483
484
485
486
        default    => 'newaliases',
        gettext_id => 'Program used to update alias database',
        gettext_comment =>
            'This may be "makemap", "newaliases", "postalias", "postmap" or full path to custom program.',
487
        # Option "none" was added on 6.2.61b
488
    },
489
490
    aliases_wrapper => {
        context    => [qw(domain site)],
IKEDA Soji's avatar
IKEDA Soji committed
491
        order      => 4.045,
492
        group      => 'mta',
Sympa authors's avatar
Sympa authors committed
493
494
495
        format     => ['off', 'on'],
        synonym    => {'0' => 'off', '1' => 'on'},
        default    => 'on',
496
        gettext_id => 'Whether to use the alias wrapper',
IKEDA Soji's avatar
IKEDA Soji committed
497
498
        gettext_comment =>
            'If the program to update alias database does not require root privileges, set this parameter to "off" and remove the wrapper file sympa_newaliases-wrapper.',
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
    aliases_db_type => {
        context    => [qw(domain site)],
        order      => 4.05,
        group      => 'mta',
        format     => '\w[-\w]*',
        default    => 'hash',
        gettext_id => 'Type of alias database',
        gettext_comment =>
            '"btree", "dbm", "hash" and so on.  Available when aliases_program is "makemap", "postalias" or "postmap"',
    },
    alias_manager => {
        context    => [qw(site)],
        order      => 4.06,
        group      => 'mta',
        gettext_id => 'Path to alias manager',
        gettext_comment =>
            'The absolute path to the script that will add/remove mail aliases',
        format => '.+',

        default_s => '$SBINDIR/alias_manager.pl',
        sample    => '/usr/local/libexec/ldap_alias_manager.pl',
    },

    ### List definition page ###

    subject => {
        context    => [qw(list)],
        order      => 10.01,
        group      => 'description',
        gettext_id => "Subject of the list",
        gettext_comment =>
            'This parameter indicates the subject of the list, which is sent in response to the LISTS mail command. The subject is a free form text limited to one line.',
        format     => '.+',
        occurrence => '1',
        length     => 50
    },

    visibility => {
        context    => [qw(list domain site)],
        order      => 10.02,
        group      => 'description',
        gettext_id => "Visibility of the list",
        gettext_comment =>
            'This parameter indicates whether the list should feature in the output generated in response to a LISTS command or should be shown in the list overview of the web-interface.',
        scenario => 'visibility',
        synonym  => {
            'public'  => 'noconceal',
            'private' => 'conceal'
        },
        default => 'conceal',
    },

    owner => {
        context  => [qw(list)],
        obsolete => 1,
        format   => {
            email => {
                context  => [qw(list)],
                obsolete => 1,
                format_s => '$email',
            },
            gecos => {
                context  => [qw(list)],
                obsolete => 1,
                format   => '.+',
            },
            info => {
                context  => [qw(list)],
                obsolete => 1,
                format   => '.+',
            },
            profile => {
                context  => [qw(list)],
                obsolete => 1,
                format   => ['privileged', 'normal'],
            },
            reception => {
                context  => [qw(list)],
                obsolete => 1,
                format   => ['mail', 'nomail'],
            },
            visibility => {
                context  => [qw(list)],
                obsolete => 1,
                format   => ['conceal', 'noconceal'],
            }
        },
        occurrence => '1-n'
    },

    editor => {
        context  => [qw(list)],
        obsolete => 1,
        format   => {
            email => {
                context  => [qw(list)],
                obsolete => 1,
                format_s => '$email',
            },
            reception => {
                context  => [qw(list)],
                obsolete => 1,
                format   => ['mail', 'nomail'],
            },
            visibility => {
                context  => [qw(list)],
                obsolete => 1,
                format   => ['conceal', 'noconceal'],
            },
            gecos => {
                context  => [qw(list)],
                obsolete => 1,
                format   => '.+',
            },
            info => {
                context  => [qw(list)],
                obsolete => 1,
                format   => '.+',
            }
        },
        occurrence => '0-n'
    },

    topics => {
        context    => [qw(list)],
        order      => 10.07,
        group      => 'description',
        gettext_id => "Topics for the list",
        gettext_comment =>
            "This parameter allows the classification of lists. You may define multiple topics as well as hierarchical ones. WWSympa's list of public lists uses this parameter.",
        format     => [],            # Sympa::Robot::topic_keys() called later
        field_type => 'listtopic',
        split_char => ',',
        occurrence => '0-n',
        filters    => ['lc'],
    },

    host => {
        context    => [qw(list domain site)],
        order      => 10.08,
        group      => 'description',
        gettext_id => "Internet domain",
        gettext_comment =>
            'Domain name of the list, default is the robot domain name set in the related robot.conf file or in file sympa.conf.',
        format_s => '$host',
        filters  => ['canonic_domain'],
        length   => 20,
        obsolete => 1
    },

    lang => {
        context    => [qw(list domain site)],
        order      => 10.09,
        group      => 'description',
        gettext_id => "Language of the list",
        #gettext_id => 'Default language',
        gettext_comment =>
            "This parameter defines the language used for the list. It is used to initialize a user's language preference; Sympa command reports are extracted from the associated message catalog.",
        #gettext_comment =>
        #    'This is the default language used by Sympa. One of supported languages should be chosen.',
        format => [],    ## Sympa::get_supported_languages() called later
        file_format => '\w+(\-\w+)*',
        field_type  => 'lang',
        occurrence  => '1',
        filters     => ['canonic_lang'],
        default     => 'en-US',
    },

    family_name => {
        context    => [qw(list)],
        order      => 10.10,
        group      => 'description',
        gettext_id => 'Family name',
        format_s   => '$family_name',
        occurrence => '0-1',
        internal   => 1
    },

    max_list_members => {
        context    => [qw(list domain site)],
        order      => 10.11,
        group      => 'description',                     # incoming / sending?
        gettext_id => "Maximum number of list members",
        gettext_comment =>
            'limit for the number of subscribers. 0 means no limit.',
        gettext_unit => 'list members',
        format       => '\d+',
        length       => 8,
        default      => '0',
    },

    # Incoming
    # - Approximately corresponds to ProcessIncoming and DoMessage spindles.
    # - Does _not_ contain the parameters with List context.

    sender_headers => {
        context => [qw(site)],
        order   => 19.00_02,
        group   => 'incoming',
        default => 'From',
        sample  => 'Resent-From,From,Return-Path',
        gettext_id =>
            'Header field name(s) used to determine sender of the messages',
        gettext_comment =>
704
            '"Return-Path" means envelope sender (a.k.a. "UNIX From") which will be alternative to sender of messages without "From" field.  "Resent-From" may also be inserted before "From", because some mailers add it into redirected messages and keep original "From" field intact.  In particular cases, "Return-Path" can not give right sender: Several mail gateway products rewrite envelope sender and add original one as non-standard field such as "X-Envelope-From".  If that is the case, you might want to insert it in place of "Return-Path".',
705
706
707
708
709
710
711
712
713
        split_char => ',',
    },

    misaddressed_commands => {
        context    => [qw(site)],
        order      => 19.00_03,
        group      => 'incoming',
        gettext_id => 'Reject misaddressed commands',
        gettext_comment =>
714
            'When a mail command is sent to a list, by default Sympa rejects this message. This feature can be turned off by setting this parameter to "ignore".',
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
        default => 'reject',
    },
    misaddressed_commands_regexp => {
        context => [qw(site)],
        order   => 19.00_04,
        group   => 'incoming',
        gettext_id =>
            'Regular expression matching with misaddressed commands',
        gettext_comment =>
            'Perl regular expression applied on messages subject and body to detect misaddressed commands.',
        default =>
            '((subscribe\s+(\S+)|unsubscribe\s+(\S+)|signoff\s+(\S+)|set\s+(\S+)\s+(mail|nomail|digest))\s*)',
    },
    sympa_priority => {
        context    => [qw(domain site)],
        order      => 19.00_05,
        group      => 'incoming',
        gettext_id => 'Priority for command messages',
        gettext_comment =>
            'Priority applied to messages sent to Sympa command address.',
        format  => [0 .. 9, 'z'],
        default => '1',
    },
    request_priority => {
        context    => [qw(domain site)],
        order      => 19.00_06,
        group      => 'incoming',
        gettext_id => 'Priority for messages bound for list owners',
        gettext_comment =>
            'Priority for processing of messages bound for "LIST-request" address, i.e. owners of the list',
        format  => [0 .. 9, 'z'],
        default => '0',
    },
    owner_priority => {
        context    => [qw(domain site)],
        order      => 19.00_07,
        group      => 'incoming',
        gettext_id => 'Priority for non-VERP bounces',
        gettext_comment =>
            'Priority for processing of messages bound for "LIST-owner" address, i.e. non-delivery reports (bounces).',
        format  => [0 .. 9, 'z'],
        default => '9',
    },

    priority => {
        context    => [qw(list domain site)],
        order      => 10.12,
        group      => 'description',            # incoming / sending?
        gettext_id => "Priority",
        gettext_comment =>
            'The priority with which Sympa will process messages for this list. This level of priority is applied while the message is going through the spool. The z priority will freeze the message in the spool.',
        #gettext_comment =>
        #    'Priority for processing of messages posted to list addresses.',
        format     => [0 .. 9, 'z'],
        length     => 1,
        occurrence => '1',
        default    => '5',
    },

    incoming_max_count => {
        context    => [qw(site)],
        order      => 19.00_10,
        group      => 'incoming',
        default    => '1',
        gettext_id => 'Max number of sympa.pl workers',
        gettext_comment =>
            'Max number of workers of sympa.pl daemon processing incoming spool.',
        format => '\d+',
    },

    sleep => {
        context         => [qw(site)],
        order           => 19.00_11,
        group           => 'incoming',
        default         => '5',
        gettext_id      => 'Interval between scanning incoming message spool',
        gettext_comment => 'Must not be 0.',
        format          => '\d+',
        gettext_unit    => 'seconds',
    },

    ### Sending page ###
    # - Approximately corresponds to AuthorizeMessage, Transform*, ToArchive,
    #   ToDigest and ToList spindles.
    # - Contains the parameters with List context.

    send => {
        context    => [qw(list domain site)],
        order      => 20.01,
        group      => 'sending',
        gettext_id => "Who can send messages",
        gettext_comment =>
            'This parameter specifies who can send messages to the list.',
        scenario => 'send',
        default  => 'private',
    },

    delivery_time => {
        context    => [qw(list)],
        order      => 20.02,
        group      => 'sending',
        gettext_id => "Delivery time (hh:mm)",
        gettext_comment =>
            'If this parameter is present, non-digest messages will be delivered to subscribers at this time: When this time has been past, delivery is postponed to the same time in next day.',
        format     => '[0-2]?\d\:[0-6]\d',
        occurrence => '0-1',
        length     => 5
    },

    digest => {
        context    => [qw(list)],
        order      => 20.03,
        group      => 'sending',
        gettext_id => "Digest frequency",
        gettext_comment =>
            'Definition of digest mode. If this parameter is present, subscribers can select the option of receiving messages in multipart/digest MIME format, or as a plain text digest. Messages are then grouped together, and compiled messages are sent to subscribers according to the frequency selected with this parameter.',
        file_format => '\d+(\s*,\s*\d+)*\s+\d+:\d+',
        format      => {
            days => {
                context     => [qw(list)],
                order       => 1,
                gettext_id  => "days",
                format      => [0 .. 6],
                file_format => '1|2|3|4|5|6|7',
                field_type  => 'dayofweek',
                occurrence  => '1-n'
            },
            hour => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "hour",
                format     => '\d+',
                occurrence => '1',
                length     => 2
            },
            minute => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "minute",
                format     => '\d+',
                occurrence => '1',
                length     => 2
            }
        },
    },

    digest_max_size => {
        context      => [qw(list)],
        order        => 20.04,
        group        => 'sending',
        gettext_id   => "Digest maximum number of messages",
        gettext_unit => 'messages',
        format       => '\d+',
        default      => 25,
        length       => 2
    },

    available_user_options => {
        context    => [qw(list)],
        order      => 20.05,
        group      => 'sending',
        gettext_id => "Available subscription options",
        format     => {
            reception => {
                context    => [qw(list)],
                order      => 1,
                gettext_id => "reception mode",
                gettext_comment =>
                    'Only these modes will be allowed for the subscribers of this list. If a subscriber has a reception mode not in the list, Sympa uses the mode specified in the default_user_options paragraph.',
                format => [
                    'mail',    'notice', 'digest', 'digestplain',
                    'summary', 'nomail', 'txt',    'urlize',
                    'not_me'
                ],
                synonym    => {'html' => 'mail'},
                field_type => 'reception',
                occurrence => '1-n',
                split_char => ',',
                default =>
                    'mail,notice,digest,digestplain,summary,nomail,txt,urlize,not_me'
            }
        }
    },

    default_user_options => {
        context         => [qw(list)],
        order           => 20.06,
        group           => 'sending',
        gettext_id      => "Subscription profile",
        gettext_comment => 'Default profile for the subscribers of the list.',
        format          => {
            reception => {
                context         => [qw(list)],
                order           => 1,
                gettext_id      => "reception mode",
                gettext_comment => 'Mail reception mode.',
                format          => [
                    'mail',    'notice', 'digest', 'digestplain',
                    'summary', 'nomail', 'txt',    'urlize',
                    'not_me'
                ],
                synonym    => {'html' => 'mail'},
                field_type => 'reception',
                occurrence => '1',
                default    => 'mail'
            },
            visibility => {
                context         => [qw(list)],
                order           => 2,
                gettext_id      => "visibility",
                gettext_comment => 'Visibility of the subscriber.',
                format          => ['conceal', 'noconceal'],
                field_type      => 'visibility',
                occurrence      => '1',
                default         => 'noconceal'
            }
        },
    },

    msg_topic => {
        context    => [qw(list)],
        order      => 20.07,
        group      => 'sending',
        gettext_id => "Topics for message categorization",
        gettext_comment =>
            "This paragraph defines a topic used to tag a message of a list, named by msg_topic.name (\"other\" is a reserved word), its title is msg_topic.title. The msg_topic.keywords entry is optional and allows automatic tagging. This should be a list of keywords, separated by ','.",
        format => {
            name => {
                context     => [qw(list)],
                order       => 1,
                gettext_id  => "Message topic name",
                format      => '[\-\w]+',
                occurrence  => '1',
                length      => 15,
                validations => ['reserved_msg_topic_name'],
            },
            keywords => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "Message topic keywords",
                format     => '[^,\n]+(,[^,\n]+)*',
                occurrence => '0-1'
            },
            title => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "Message topic title",
                format     => '.+',
                occurrence => '1',
                length     => 35
            }
        },
        occurrence => '0-n'
    },

    msg_topic_keywords_apply_on => {
        context => [qw(list)],
        order   => 20.08,
        group   => 'sending',
        gettext_id =>
            "Defines to which part of messages topic keywords are applied",
        gettext_comment =>
            'This parameter indicates which part of the message is used to perform automatic tagging.',
        format     => ['subject', 'body', 'subject_and_body'],
        occurrence => '0-1',
        default    => 'subject'
    },

    msg_topic_tagging => {
        context    => [qw(list)],
        order      => 20.09,
        group      => 'sending',
        gettext_id => "Message tagging",
        gettext_comment =>
            'This parameter indicates if the tagging is optional or required for a list.',
        format     => ['required_sender', 'required_moderator', 'optional'],
        occurrence => '1',
        default    => 'optional'
    },

    reply_to => {
        context    => [qw(list)],
        group      => 'sending',
        gettext_id => "Reply address",
        format     => '\S+',
        default    => 'sender',
        obsolete   => 1
    },
    'reply-to' => {obsolete => 'reply_to'},
    replyto    => {obsolete => 'reply_to'},

    forced_reply_to => {
        context    => [qw(list)],
        group      => 'sending',
        gettext_id => "Forced reply address",
        format     => '\S+',
        obsolete   => 1
    },
    forced_replyto    => {obsolete => 'forced_reply_to'},
    'forced_reply-to' => {obsolete => 'forced_reply_to'},

    reply_to_header => {
        context    => [qw(list)],
        order      => 20.10,
        group      => 'sending',
        gettext_id => "Reply address",
        gettext_comment =>
            'This defines what Sympa will place in the Reply-To: SMTP header field of the messages it distributes.',
        format => {
            value => {
                context    => [qw(list)],
                order      => 1,
                gettext_id => "value",
                gettext_comment =>
                    "This parameter indicates whether the Reply-To: field should indicate the sender of the message (sender), the list itself (list), both list and sender (all) or an arbitrary e-mail address (defined by the other_email parameter).\nNote: it is inadvisable to change this parameter, and particularly inadvisable to set it to list. Experience has shown it to be almost inevitable that users, mistakenly believing that they are replying only to the sender, will send private messages to a list. This can lead, at the very least, to embarrassment, and sometimes to more serious consequences.",
                format     => ['sender', 'list', 'all', 'other_email'],
                default    => 'sender',
                occurrence => '1'
            },
            other_email => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "other email address",
                gettext_comment =>
                    'If value was set to other_email, this parameter defines the e-mail address used.',
                format_s => '$email',
            },
            apply => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "respect of existing header field",
                gettext_comment =>
                    'The default is to respect (preserve) the existing Reply-To: SMTP header field in incoming messages. If set to forced, Reply-To: SMTP header field will be overwritten.',
                format  => ['forced', 'respect'],
                default => 'respect'
            }
        }
    },

    anonymous_sender => {
        context    => [qw(list)],
        order      => 20.11,
        group      => 'sending',
        gettext_id => "Anonymous sender",
        gettext_comment =>
            "To hide the sender's email address before distributing the message. It is replaced by the provided email address.",
        format => '.+'
    },

    anonymous_header_fields => {
        context => [qw(site)],
        order   => 20.11_1,
        group   => 'sending',
        gettext_id =>
            'Header fields removed when a mailing list is setup in anonymous mode',
        gettext_comment =>
            "See \"anonymous_sender\" list parameter.\nDefault value prior to Sympa 6.1.19 is:\n  Sender,X-Sender,Received,Message-id,From,X-Envelope-To,Resent-From,Reply-To,Organization,Disposition-Notification-To,X-Envelope-From,X-X-Sender",
        default =>
            'Authentication-Results,Disposition-Notification-To,DKIM-Signature,Injection-Info,Organisation,Organization,Original-Recipient,Originator,Path,Received,Received-SPF,Reply-To,Resent-Reply-To,Return-Receipt-To,X-Envelope-From,X-Envelope-To,X-Sender,X-X-Sender',
        split_char => ',',
    },

    custom_header => {
        context    => [qw(list)],
        order      => 20.12,
        group      => 'sending',
        gettext_id => "Custom header field",
        gettext_comment =>
            'This parameter is optional. The headers specified will be added to the headers of messages distributed via the list. As of release 1.2.2 of Sympa, it is possible to put several custom header lines in the configuration file at the same time.',
        format     => '\S+:\s+.*',
        occurrence => '0-n',
        length     => 30
    },
    'custom-header' => {obsolete => 'custom_header'},

    custom_subject => {
        context    => [qw(list)],
        order      => 20.13,
        group      => 'sending',
        gettext_id => "Subject tagging",
        gettext_comment =>
            'This parameter is optional. It specifies a string which is added to the subject of distributed messages (intended to help users who do not use automatic tools to sort incoming messages). This string will be surrounded by [] characters.',
        format => '.+',
        length => 15
    },
    'custom-subject' => {obsolete => 'custom_subject'},

    footer_type => {
        context    => [qw(list)],
        order      => 20.14,
        group      => 'sending',
        gettext_id => "Attachment type",
        gettext_comment =>
            "List owners may decide to add message headers or footers to messages sent via the list. This parameter defines the way a footer/header is added to a message.\nmime: \nThe default value. Sympa will add the footer/header as a new MIME part.\nappend: \nSympa will not create new MIME parts, but will try to append the header/footer to the body of the message. Predefined message-footers will be ignored. Headers/footers may be appended to text/plain messages only.",
        format  => ['mime', 'append'],
        default => 'mime'
    },

    max_size => {
        context    => [qw(list domain host)],
        order      => 20.15,
        group      => 'sending',                # incoming / sending?
        gettext_id => "Maximum message size",
        gettext_comment => 'Maximum size of a message in 8-bit bytes.',
        #gettext_id => 'Maximum size of messages',
        #gettext_comment =>
        #    'Incoming messages smaller than this size is allowed distribution by Sympa.',
        gettext_unit => 'bytes',
        format       => '\d+',
        length       => 8,
        default      => '5242880',    ## 5 MiB
        sample       => '2097152',
    },
    'max-size' => {obsolete => 'max_size'},

1130
1131
    personalization_feature => {
        context    => [qw(list domain site)],
1132
1133
1134
1135
1136
1137
1138
        order      => 20.16,
        group      => 'sending',                         # outgoing / sending?
        gettext_id => "Allow message personalization",
        format     => ['on', 'off'],
        occurrence => '1',
        default    => 'off',
    },
1139
1140
1141
1142
1143
1144
1145
1146
1147
    merge_feature => {obsolete => 'personalization_feature'},

    personalization => {
        context    => [qw(list domain site)],
        order      => 20.161,
        group      => 'sending',
        gettext_id => "Message personalization",
        format     => {
            web_apply_on => {
Sympa authors's avatar
tidyall    
Sympa authors committed
1148
1149
1150
1151
                context    => [qw(list domain site)],
                order      => 1,
                group      => 'sending',
                gettext_id => 'Scope for messages from the web interface',
1152
1153
1154
1155
1156
                format     => ['none', 'footer', 'all'],
                default    => 'footer',
                occurrence => '1'
            },
            mail_apply_on => {
Sympa authors's avatar
tidyall    
Sympa authors committed
1157
1158
1159
                context    => [qw(list domain site)],
                order      => 2,
                group      => 'sending',
1160
                gettext_id => 'Scope for messages from incoming email',
1161
1162
1163
1164
1165
1166
                format     => ['none', 'footer', 'all'],
                default    => 'none',
                occurrence => '1'
            },
        },
    },
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418

    message_hook => {
        context    => [qw(list)],
        order      => 20.17,
        group      => 'sending',
        gettext_id => 'Hook modules for message processing',
        format     => {
            pre_distribute => {
                context    => [qw(list)],
                order      => 1,
                gettext_id => 'A hook on the messages before distribution',
                format     => '(::|\w)+',
            },
            post_archive => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => 'A hook on the messages just after archiving',
                format     => '(::|\w)+',
            },
        },
    },

    reject_mail_from_automates_feature => {
        context => [qw(list site)],
        order   => 20.18,
        group   => 'sending',         # incoming / sending?
        gettext_id => "Reject mail from automatic processes (crontab, etc)?",
        #gettext_id => 'Reject mail sent from automated services to list',
        gettext_comment =>
            "Rejects messages that seem to be from automated services, based on a few header fields (\"Content-Identifier:\", \"Auto-Submitted:\").\nSympa also can be configured to reject messages based on the \"From:\" header field value (see \"loop_prevention_regex\").",
        format     => ['on', 'off'],
        occurrence => '1',
        default    => 'on',
    },

    remove_headers => {
        context => [qw(list site)],
        order   => 20.19,
        group   => 'sending',         # outgoing / sending?
        #gettext_id => 'Incoming SMTP header fields to be removed',
        gettext_id => 'Header fields to be removed from incoming messages',
        gettext_comment =>
            "Use it, for example, to ensure some privacy for your users in case that \"anonymous_sender\" mode is inappropriate.\nThe removal of these header fields is applied before Sympa adds its own header fields (\"rfc2369_header_fields\" and \"custom_header\").",
        format => '\S+',
        default =>
            'X-Sympa-To,X-Family-To,Return-Receipt-To,Precedence,X-Sequence,Disposition-Notification-To,Sender',
        sample =>
            'Resent-Date,Resent-From,Resent-To,Resent-Message-Id,Sender,Delivered-To',
        occurrence => '0-n',
        split_char => ','
    },

    remove_outgoing_headers => {
        context => [qw(list site)],
        order   => 20.20,
        group   => 'sending',         # outgoing /  sending?
        #gettext_id => 'Outgoing SMTP header fields to be removed',
        gettext_id =>
            'Header fields to be removed before message distribution',
        gettext_comment =>
            "The removal happens after Sympa's own header fields are added; therefore, it is a convenient way to remove Sympa's own header fields (like \"X-Loop:\" or \"X-no-archive:\") if you wish.",
        format     => '\S+',
        default    => 'none',
        sample     => 'X-no-archive',
        occurrence => '0-n',
        split_char => ','
    },

    rfc2369_header_fields => {
        context => [qw(list site)],
        order   => 20.21,
        group   => 'sending',         # outgoing / sending?
        #gettext_id => "RFC 2369 Header fields",
        gettext_id => 'RFC 2369 header fields',
        gettext_comment =>
            "Specify which RFC 2369 mailing list header fields to be added.\n\"List-Id:\" header field defined in RFC 2919 is always added. Sympa also adds \"Archived-At:\" header field defined in RFC 5064.",
        format =>
            ['help', 'subscribe', 'unsubscribe', 'post', 'owner', 'archive'],
        default    => 'help,subscribe,unsubscribe,post,owner,archive',
        occurrence => '0-n',
        split_char => ','
    },

    ### Outgoing
    # - Corresponds to ProcessOutgoing and ToMailer spindles.
    # - Does _not_ contain the parameters with List context.

    urlize_min_size => {
        context    => [qw(domain site)],
        order      => 21.00_11,
        group      => 'outgoing',                     # 'sending'?
        gettext_id => 'Minimum size to be urlized',
        gettext_comment =>
            'When a subscriber chose "urlize" reception mode, attachments not smaller than this size will be urlized.',
        format       => '\d+',
        gettext_unit => 'bytes',
        default      => 10240,                        # 10 kiB
    },
    allowed_external_origin => {
        context    => [qw(domain site)],
        order      => 21.00_12,
        group      => 'outgoing',                                # 'archives'?
        gettext_id => 'Allowed external links in sanitized HTML',
        gettext_comment =>
            'When the HTML content of a message must be sanitized, links ("href" or "src" attributes) with the hosts listed in this parameter will not be scrubbed. If "*" character is included, it matches any subdomains. Single "*" allows any hosts.',
        format     => '[-\w*]+(?:[.][-\w*]+)+',
        split_char => ',',
        sample     => '*.example.org,www.example.com',
    },

    sympa_packet_priority => {
        context    => [qw(domain site)],
        order      => 21.00_20,
        group      => 'outgoing',
        gettext_id => 'Default priority for a packet',
        default    => '5',
        gettext_comment =>
            'The default priority set to a packet to be sent by the bulk.',
        format => [0 .. 9, 'z'],
    },
    bulk_fork_threshold => {
        context    => [qw(site)],
        order      => 21.00_21,
        group      => 'outgoing',
        default    => '1',
        gettext_id => 'Fork threshold of bulk daemon',
        gettext_comment =>
            'The minimum number of packets before bulk daemon forks a new worker to increase sending rate.',
        format => '\d+',
    },
    bulk_max_count => {
        context    => [qw(site)],
        order      => 21.00_22,
        group      => 'outgoing',
        default    => '3',
        gettext_id => 'Maximum number of bulk workers',
        format     => '\d+',
    },
    bulk_lazytime => {
        context    => [qw(site)],
        order      => 21.00_23,
        group      => 'outgoing',
        default    => '600',
        gettext_id => 'Idle timeout of bulk workers',
        gettext_comment =>
            'The number of seconds a bulk worker will remain running without processing a message before it spontaneously exits.',
        format       => '\d+',
        gettext_unit => 'seconds',
    },
    bulk_sleep => {
        context    => [qw(site)],
        order      => 21.00_24,
        group      => 'outgoing',
        default    => '1',
        gettext_id => 'Sleep time of bulk workers',
        gettext_comment =>
            "The number of seconds a bulk worker sleeps between starting a new loop if it didn't find a message to send.\nKeep it small if you want your server to be reactive.",
        format       => '\d+',
        gettext_unit => 'seconds',
    },
    bulk_wait_to_fork => {
        context    => [qw(site)],
        order      => 21.00_25,
        group      => 'outgoing',
        default    => '10',
        gettext_id => 'Interval between checks of packet numbers',
        gettext_comment =>
            "Number of seconds a master bulk daemon waits between two packets number checks.\nKeep it small if you expect brutal increases in the message sending load.",
        format       => '\d+',
        gettext_unit => 'seconds',
    },

    log_smtp => {
        context    => [qw(domain site)],
        order      => 21.00_32,
        group      => 'outgoing',
        gettext_id => 'Log invocation of sendmail',
        gettext_comment =>
            'This can be overwritten by "-m" option for sympa.pl.',
        format  => ['on', 'off'],    #XXX
        default => 'off',
    },
    maxsmtp => {
        context    => [qw(site)],
        order      => 21.00_33,
        group      => 'outgoing',
        default    => '40',
        sample     => '500',
        gettext_id => 'Maximum number of sendmail processes',
        gettext_comment =>
            "Maximum number of simultaneous child processes spawned by Sympa. This is the main load control parameter. \nProposed value is quite low, but you can rise it up to 100, 200 or even 300 with powerful systems.",
        format => '\d+',
    },
    nrcpt => {
        context    => [qw(site)],
        order      => 21.00_34,
        group      => 'outgoing',
        default    => '25',
        gettext_id => 'Maximum number of recipients per call to sendmail',
        gettext_comment =>
            'This grouping factor makes it possible for the sendmail processes to optimize the number of SMTP sessions for message distribution. If needed, you can limit the number of recipients for a particular domain. Check the "nrcpt_by_domain.conf" configuration file.',
        format => '\d+',
    },
    avg => {
        context => [qw(site)],
        order   => 21.00_35,
        group   => 'outgoing',
        default => '10',
        gettext_id =>
            'Maximum number of different mail domains per call to sendmail',
        format => '\d+',
    },

    ### Privileges page ###

    create_list => {
        context    => [qw(domain site)],
        order      => 30.00_01,
        group      => 'command',
        default    => 'public_listmaster',
        sample     => 'intranet',
        gettext_id => 'Who is able to create lists',
        gettext_comment =>
            'Defines who can create lists (or request list creation) by creating new lists or by renaming or copying existing lists.',
        scenario => 'create_list',
    },
    allow_subscribe_if_pending => {
        context    => [qw(domain site)],
        order      => 30.00_02,
        group      => 'command',
        gettext_id => 'Allow adding subscribers to a list not open',
        gettext_comment =>
            'If set to "off", adding subscribers to, or removing subscribers from a list with status other than "open" is forbidden.',
        format  => ['on', 'off'],    #XXX
        default => 'on',
    },
    global_remind => {
        context    => [qw(site)],
        order      => 30.00_03,
        group      => 'command',
        gettext_id => 'Who is able to send remind messages over all lists',
        default    => 'listmaster',
        scenario   => 'global_remind',
    },
    move_user => {
        context    => [qw(domain site)],
        order      => 30.00_04,
        group      => 'command',
        default    => 'auth',
        gettext_id => 'Who is able to change user\'s email',
        scenario   => 'move_user',
    },
1419
    use_blocklist => {
1420
1421
1422
        context    => [qw(domain site)],
        order      => 30.00_05,
        group      => 'command',
1423
        gettext_id => 'Use blocklist',
1424
1425
1426
        default    => 'send,create_list',
        split_char => ',',
        gettext_comment =>
1427
            'List of operations separated by comma for which blocklist filter is applied.  Setting this parameter to "none" will hide the blocklist feature.',
1428
1429
        format => '[-.\w]+',
    },
1430
    use_blacklist => {obsolete => 'use_blocklist'},
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728

    ### Priviledges on the lists

    info => {
        context    => [qw(list domain site)],
        order      => 30.01,
        group      => 'command',
        gettext_id => "Who can view list information",
        scenario   => 'info',
        default    => 'open',
    },

    subscribe => {
        context    => [qw(list domain site)],
        order      => 30.02,
        group      => 'command',
        gettext_id => "Who can subscribe to the list",
        gettext_comment =>
            'The subscribe parameter defines the rules for subscribing to the list.',
        scenario => 'subscribe',
        default  => 'open',
    },
    subscription => {obsolete => 'subscribe'},

    add => {
        context    => [qw(list domain site)],
        order      => 30.03,
        group      => 'command',
        gettext_id => "Who can add subscribers",
        gettext_comment =>
            'Privilege for adding (ADD command) a subscriber to the list',
        scenario => 'add',
        default  => 'owner',
    },

    unsubscribe => {
        context    => [qw(list domain site)],
        order      => 30.04,
        group      => 'command',
        gettext_id => "Who can unsubscribe",
        gettext_comment =>
            'This parameter specifies the unsubscription method for the list. Use open_notify or auth_notify to allow owner notification of each unsubscribe command.',
        scenario => 'unsubscribe',
        default  => 'open',
    },
    unsubscription => {obsolete => 'unsubscribe'},

    del => {
        context    => [qw(list domain site)],
        order      => 30.05,
        group      => 'command',
        gettext_id => "Who can delete subscribers",
        scenario   => 'del',
        default    => 'owner',
    },

    invite => {
        context    => [qw(list domain site)],
        order      => 30.06,
        group      => 'command',
        gettext_id => "Who can invite people",
        scenario   => 'invite',
        default    => 'private',
    },

    remind => {
        context    => [qw(list domain site)],
        order      => 30.07,
        group      => 'command',
        gettext_id => "Who can start a remind process",
        gettext_comment =>
            'This parameter specifies who is authorized to use the remind command.',
        scenario => 'remind',
        default  => 'owner',
    },

    review => {
        context    => [qw(list domain site)],
        order      => 30.08,
        group      => 'command',
        gettext_id => "Who can review subscribers",
        gettext_comment =>
            'This parameter specifies who can access the list of members. Since subscriber addresses can be abused by spammers, it is strongly recommended that you only authorize owners or subscribers to access the subscriber list. ',
        scenario => 'review',
        synonym  => {'open' => 'public',},
        default  => 'owner',
    },

    owner_domain => {
        context    => [qw(list domain site)],
        order      => 30.085,
        group      => 'command',
        gettext_id => "Required domains for list owners",
        #gettext_comment =>
        #    'Restrict list ownership to addresses in the specified domains.',
        gettext_comment =>
            'Restrict list ownership to addresses in the specified domains. This can be used to reserve list ownership to a group of trusted users from a set of domains associated with an organization, while allowing moderators and subscribers from the Internet at large.',
        format_s   => '$host( +$host)*',
        length     => 72,
        occurrence => '0-1',
        split_char => ' ',
    },

    owner_domain_min => {
        context    => [qw(list domain site)],
        order      => 30.086,
        group      => 'command',
        gettext_id => "Minimum owners in required domains",
        #gettext_comment =>
        #    'Require list ownership by a minimum number of addresses in the specified domains.',
        gettext_comment =>
            'Minimum number of owners for each list must satisfy the owner_domain restriction. The default of zero (0) means *all* list owners must match. Setting to 1 requires only one list owner to match owner_domain; all other owners can be from any domain. This setting can be used to ensure that there is always at least one known contact point for any mailing list.',
        format     => '\d+',
        length     => 2,
        occurrence => '0-1',
        default    => '0',
    },

    shared_doc => {
        context    => [qw(list domain site)],
        order      => 30.09,
        group      => 'command',                #FIXME www_other/shared_doc
        gettext_id => "Shared documents",
        gettext_comment =>
            'This paragraph defines read and edit access to the shared document repository.',
        format => {
            d_read => {
                context    => [qw(list domain site)],
                order      => 1,
                gettext_id => "Who can view",
                scenario   => 'd_read',
                default    => 'private',
            },
            d_edit => {
                context    => [qw(list domain site)],
                order      => 2,
                gettext_id => "Who can edit",
                scenario   => 'd_edit',
                default    => 'owner',
            },
            quota => {
                context => [qw(list domain site)],
                order   => 3,
                #FIXME: group www_other/shared_doc
                gettext_id   => "quota",
                gettext_unit => 'Kbytes',
                format       => '\d+',
                length       => 8
            }
        }
    },

    ### Archives page ###

    ignore_x_no_archive_header_feature => {
        context    => [qw(site)],
        order      => 40.00_01,
        group      => 'archives',
        gettext_id => 'Ignore "X-no-archive:" header field',
        gettext_comment =>
            'Sympa\'s default behavior is to skip archiving of incoming messages that have an "X-no-archive:" header field set. This parameter allows one to change this behavior.',
        format  => ['on', 'off'],
        default => 'off',
        sample  => 'on',
    },
    custom_archiver => {
        context    => [qw(site)],
        order      => 40.00_02,
        group      => 'archives',
        gettext_id => 'Custom archiver',
        gettext_comment =>
            "Activates a custom archiver to use instead of MHonArc. The value of this parameter is the absolute path to the executable file.\nSympa invokes this file with these two arguments:\n--list\nThe address of the list including domain part.\n--file\nAbsolute path to the message to be archived.",
        format => '.+',
        file   => 'wwsympa.conf',
    },

    process_archive => {
        context    => [qw(list domain site)],
        order      => 40.01,
        group      => 'archives',
        gettext_id => "Store distributed messages into archive",
        gettext_comment =>
            "If enabled, distributed messages via lists will be archived. Otherwise archiving is disabled.\nNote that even if setting this parameter disabled, past archives will not be removed and will be accessible according to access settings by each list.",
        format     => ['on', 'off'],
        occurrence => '1',
        default    => 'off',
    },

    web_archive => {
        context    => [qw(list domain site)],
        obsolete   => '1',                      # Merged into archive.
        group      => 'archives',
        gettext_id => "Web archives",
        format     => {
            access => {
                context    => [qw(list domain site)],
                order      => 1,
                gettext_id => "access right",
                scenario   => 'archive_web_access',
                default    => 'closed',
                obsolete   => 1,                      # Use archive.web_access
            },
            quota => {
                context      => [qw(list site)],
                order        => 2,
                gettext_id   => "quota",
                gettext_unit => 'Kbytes',
                format       => '\d+',
                length       => 8,
                obsolete     => 1,                    # Use archive.quota
            },
            max_month => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "Maximum number of month archived",
                format     => '\d+',
                length     => 3,
                obsolete => 1,                        # Use archive.max_month
            }
        }
    },
    archive => {
        context    => [qw(list domain site)],
        order      => 40.02,
        group      => 'archives',
        gettext_id => "Archives",
        gettext_comment =>
            "Privilege for reading mail archives and frequency of archiving.\nDefines who can access the list's web archive.",
        format => {
            period => {
                context    => [qw(list)],
                order      => 1,
                gettext_id => "frequency",
                format     => ['day', 'week', 'month', 'quarter', 'year'],
                synonym    => {'weekly' => 'week'},
                obsolete => 1,    # Not yet implemented.
            },
            access => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "access right",
                format  => ['open', 'private', 'public', 'owner', 'closed'],
                synonym => {'open' => 'public'},
                obsolete => 1,    # Use archive.mail_access
            },
            web_access => {
                context    => [qw(list domain site)],
                order      => 3,
                gettext_id => "access right",
                scenario   => 'archive_web_access',
                default    => 'closed',
            },
            mail_access => {
                context    => [qw(list domain site)],
                order      => 4,
                gettext_id => "access right by mail commands",
                scenario   => 'archive_mail_access',
                synonym    => {
                    'open' => 'public',    # Compat. with <=6.2b.3.
                },
                default => 'closed',
            },
            quota => {
                context      => [qw(list site)],
                order        => 5,
                gettext_id   => "quota",
                gettext_unit => 'Kbytes',
                format       => '\d+',
                length       => 8
            },
            max_month => {
                context      => [qw(list)],
                order        => 6,
                gettext_id   => "Maximum number of month archived",
                gettext_unit => 'months',
                format       => '\d+',
                length       => 3
            }
        }
    },

    archive_crypted_msg => {
        context    => [qw(list)],
        order      => 40.03,
        group      => 'archives',
        gettext_id => "Archive encrypted mails as cleartext",
        format     => ['original', 'decrypted'],
        occurrence => '1',
        default    => 'original'
    },

    web_archive_spam_protection => {
        context => [qw(list domain site)],
        order   => 40.04,
        group   => 'archives',
        #gettext_id => "email address protection method",
        gettext_id => 'Protect web archive against spam harvesters',
        #gettext_comment =>
1729
1730
1731
1732
1733
        #    'Idem spam_protection is provided but it can be used only for web archives. Access requires a cookie, and users must submit a small form in order to receive a cookie before browsing the archives. This blocks all robot, even google and co.',
        gettext_comment =>
            "The same as \"spam_protection\", but restricted to the web archive.\nIn addition to it:\ncookie: users must submit a small form in order to receive a cookie before browsing the web archive.\nconcealed: e-mail addresses will never be displayed.",
        format     => ['cookie', 'javascript', 'at', 'concealed', 'none'],
        synonym    => {'gecos' => 'concealed'},
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
        occurrence => '1',
        default    => 'cookie',
    },

    ### Bounces page ###

    bounce => {
        context    => [qw(list site)],
        order      => 50.01,
        group      => 'bounces',
        gettext_id => "Bounces management",
        format     => {
            warn_rate => {
                context    => [qw(list site)],
                order      => 1,
                gettext_id => "warn rate",
                gettext_comment =>
                    'The list owner receives a warning whenever a message is distributed and the number (percentage) of bounces exceeds this value.',
                gettext_unit => '%',
                format       => '\d+',
                length       => 3,
                default      => '30',
            },
            halt_rate => {
                context    => [qw(list site)],
                order      => 2,
                gettext_id => "halt rate",
                gettext_comment =>
                    'NOT USED YET. If bounce rate reaches the halt_rate, messages for the list will be halted, i.e. they are retained for subsequent moderation.',
                gettext_unit => '%',
                format       => '\d+',
                length       => 3,
                default      => '50',
                obsolete     => 1,       # Not yet implemented.
            }
        }
    },

    bouncers_level1 => {
        context         => [qw(list domain site)],
        order           => 50.02,
        group           => 'bounces',
        gettext_id      => "Management of bouncers, 1st level",
        gettext_comment => 'Level 1 is the lower level of bouncing users',
        format          => {
            rate => {
                context    => [qw(list domain site)],
                order      => 1,
                gettext_id => "threshold",
                gettext_comment =>
                    "Each bouncing user have a score (from 0 to 100).\nThis parameter defines a lower limit for each category of bouncing users.For example, level 1 begins from 45 to level_2_treshold.",
                gettext_unit => 'points',
                format       => '\d+',
                length       => 2,
                default      => '45',
            },
            action => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "action for this population",
                gettext_comment =>
                    'This parameter defines which task is automatically applied on level 1 bouncers.',
                format     => ['remove_bouncers', 'notify_bouncers', 'none'],
                occurrence => '1',
                default    => 'notify_bouncers'
            },
            notification => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "notification",
                gettext_comment =>
                    'When automatic task is executed on level 1 bouncers, a notification email can be send to listowner or listmaster.',
                format     => ['none', 'owner', 'listmaster'],
                occurrence => '1',
                default    => 'owner'
            }
        }
    },

    bouncers_level2 => {
        context         => [qw(list domain site)],
        order           => 50.03,
        group           => 'bounces',
        gettext_id      => "Management of bouncers, 2nd level",
        gettext_comment => 'Level 2 is the highest level of bouncing users',
        format          => {
            rate => {
                context    => [qw(list domain site)],
                order      => 1,
                gettext_id => "threshold",
                gettext_comment =>
                    "Each bouncing user have a score (from 0 to 100).\nThis parameter defines the score range defining each category of bouncing users.For example, level 2 is for users with a score between 80 and 100.",
                gettext_unit => 'points',
                format       => '\d+',
                length       => 2,
                default      => '75',
            },
            action => {
                context    => [qw(list)],
                order      => 2,
                gettext_id => "action for this population",
                gettext_comment =>
                    'This parameter defines which task is automatically applied on level 2 bouncers.',
                format     => ['remove_bouncers', 'notify_bouncers', 'none'],
                occurrence => '1',
                default    => 'remove_bouncers'
            },
            notification => {
                context    => [qw(list)],
                order      => 3,
                gettext_id => "notification",
                gettext_comment =>
                    'When automatic task is executed on level 2 bouncers, a notification email can be send to listowner or listmaster.',
                format     => ['none', 'owner', 'listmaster'],
                occurrence => '1',
                default    => 'owner'
            }
        }
    },

    verp_rate => {
        context    => [qw(list domain site)],
        order      => 50.04,
        group      => 'bounces',
        gettext_id => "percentage of list members in VERP mode",
        gettext_comment =>
            "Uses variable envelope return path (VERP) to detect bouncing subscriber addresses.\n0%: VERP is never used.\n100%: VERP is always in use.\nVERP requires address with extension to be supported by MTA. If tracking is enabled for a list or a message, VERP is applied for 100% of subscribers.",
        format =>
            ['100%', '50%', '33%', '25%', '20%', '10%', '5%', '2%', '0%'],
        occurrence => '1',
        default    => '0%',
    },

    tracking => {
        context    => [qw(list site)],
        order      => 50.05,
        group      => 'bounces',
        gettext_id => "Message tracking feature",
        format     => {
            delivery_status_notification => {
                context => [qw(list site)],
                order   => 1,
                gettext_id =>
                    "tracking message by delivery status notification",
                #gettext_id =>
                #    'Tracking message by delivery status notification (DSN)',
                format     => ['on', 'off'],
                occurrence => '1',
                default    => 'off',
            },
            message_disposition_notification => {
                context => [qw(list site)],
                order   => 2,
                gettext_id =>
                    "tracking message by message disposition notification",
                #gettext_id =>
                #    'Tracking message by message disposition notification (MDN)',
                format     => ['on', 'on_demand', 'off'],
                occurrence => '1',
                default    => 'off',
            },
            tracking => {
                context    => [qw(list site)],
                order      => 3,
                gettext_id => "who can view message tracking",
                scenario   => 'tracking',
                default    => 'owner',
            },
            retention_period => {
                context => [qw(list site)],
                order   => 4,
                gettext_id =>
                    "Tracking datas are removed after this number of days",
                #gettext_id => 'Max age of tracking information',
                #gettext_comment =>
                #    'Tracking information is removed after this number of days',
                gettext_unit => 'days',
                format       => '\d+',
                default      => '90',
                length       => 5
            }
        }
    },

    welcome_return_path => {
        context    => [qw(list site)],
        order      => 50.06,
        group      => 'bounces',
        gettext_id => "Welcome return-path",
        #gettext_id => 'Remove bouncing new subscribers',
        gettext_comment =>
            'If set to unique, the welcome message is sent using a unique return path in order to remove the subscriber immediately in the case of a bounce.',
        format  => ['unique', 'owner'],
        default => 'owner',
    },

    remind_return_path => {
        context    => [qw(list site)],
        order      => 50.07,
        group      => 'bounces',
        gettext_id => "Return-path of the REMIND command",
        #gettext_id => 'Remove subscribers bouncing remind message',
        gettext_comment =>
            'Same as welcome_return_path, but applied to remind messages.',
        format  => ['unique', 'owner'],
        default => 'owner',
    },

    expire_bounce_task => {
        context    => [qw(site)],
        order      => 50.10_01,
        group      => 'bounces',
        default    => 'daily',
        gettext_id => 'Task for expiration of old bounces',
        gettext_comment =>
            'This task resets bouncing information for addresses not bouncing in the last 10 days after the latest message distribution.',
        task => 'expire_bounce',
    },
    purge_orphan_bounces_task => {
        context    => [qw(site)],
        order      => 50.10_02,
        group      => 'bounces',
        gettext_id => 'Task for cleaning invalidated bounces',
        gettext_comment =>
            'This task deletes bounce information for unsubscribed users.',
        default => 'monthly',
        task    => 'purge_orphan_bounces',
    },
    eval_bouncers_task => {
        context    => [qw(site)],
        order      => 50.10_03,
        group      => 'bounces',
        gettext_id => 'Task for updating bounce scores',
        gettext_comment =>
            'This task scans all bouncing users for all lists, and updates "bounce_score_subscriber" field in "subscriber_table" table. The scores may be used for management of bouncers.',
        default => 'daily',
        task    => 'eval_bouncers',
    },
    process_bouncers_task => {
        context    => [qw(site)],
        order      => 50.10_04,
        group      => 'bounces',
        gettext_id => 'Task for management of bouncers',
        gettext_comment =>
            'This task executes actions on bouncing users configured by each list, according to their scores.',
        default => 'weekly',
        task    => 'process_bouncers',
    },
    purge_tables_task => {
        context    => [qw(site)],
        order      => 50.10_05,
        group      => 'bounces',
        gettext_id => 'Task for cleaning tables',
        gettext_comment =>
            'This task cleans old tracking information from "notification_table" table.',
        default => 'daily',
        task    => 'purge_tables',
    },
    minimum_bouncing_count => {
        context    => [qw(site)],
        order      => 50.10_06,
        group      => 'bounces',
        gettext_id => 'Minimum number of bounces',
        gettext_comment =>
            'The minimum number of bounces received to update bounce score of a user.',
        format  => '\d+',
        default => '10',
    },
    minimum_bouncing_period => {
        context    => [qw(site)],
        order      => 50.10_07,
        group      => 'bounces',
        gettext_id => 'Minimum bouncing period',
        gettext_comment =>
            'The minimum period for which bouncing lasted to update bounce score of a user.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '10',
    },
    bounce_delay => {
        context    => [qw(site)],
        order      => 50.10_08,
        group      => 'bounces',
        gettext_id => 'Delay of bounces',
        gettext_comment =>
            'Average time for a bounce sent back to mailing list server after a post was sent to a list. Usually bounces are sent back on the same day as the original message.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '0',
    },
    bounce_email_prefix => {
        context    => [qw(site)],
        order      => 50.10_09,
        group      => 'bounces',
        gettext_id => 'Prefix of VERP return address',
        gettext_comment =>
            "The prefix to consist the return-path of probe messages used for bounce management, when variable envelope return path (VERP) is enabled. VERP requires address with extension to be supported by MTA.\nIf you change the default value, you must modify the mail aliases too.",
        format  => '\S+',
        default => 'bounce',
    },
    return_path_suffix => {
        context    => [qw(site)],
        order      => 50.10_10,
        group      => 'bounces',
        gettext_id => 'Suffix of list return address',
        gettext_comment =>
            'The suffix appended to the list name to form the return-path of messages distributed through the list. This address will receive all non-delivery reports (also called bounces).',
        format  => '\S+',
        default => '-owner',
    },

    ### Loop prevention

    loop_command_max => {
        context    => [qw(site)],
        order      => 51.00_01,
        group      => 'loop_prevention',
        gettext_id => 'Maximum number of responses to command message',
        gettext_comment =>
            'The maximum number of command reports sent to an email address. Messages are stored in "bad" subdirectory of incoming message spool, and reports are not longer sent.',
        format  => '\d+',
        default => '200',
    },
    loop_command_sampling_delay => {
        context    => [qw(site)],
        order      => 51.00_02,
        group      => 'loop_prevention',
        gettext_id => 'Delay before counting responses to command message',
        gettext_comment =>
            'This parameter defines the delay in seconds before decrementing the counter of reports sent to an email address.',
        format       => '\d+',
        gettext_unit => 'seconds',
        default      => '3600',
    },
    loop_command_decrease_factor => {
        context    => [qw(site)],
        order      => 51.00_03,
        group      => 'loop_prevention',
        gettext_id => 'Decrementing factor of responses to command message',
        gettext_comment =>
            'The decrementation factor (from 0 to 1), used to determine the new report counter after expiration of the delay.',
        format  => '[.\d]+',
        default => '0.5',
    },

    msgid_table_cleanup_ttl => {
        context    => [qw(site)],
        order      => 51.00_04,
        group      => 'loop_prevention',
        gettext_id => 'Expiration period of message ID table',
        gettext_comment =>
            'Expiration period of entries in the table maintained by sympa_msg.pl daemon to prevent delivery of duplicate messages caused by loop.',
        format       => '\d+',
        gettext_unit => 'seconds',
        default      => '86400',
    },
    msgid_table_cleanup_frequency => {
        context    => [qw(site)],
        order      => 51.00_05,
        group      => 'loop_prevention',
        gettext_id => 'Cleanup interval of message ID table',
        gettext_comment =>
            'Interval between cleanups of the table maintained by sympa_msg.pl daemon to prevent delivery of duplicate messages caused by loop.',
        format       => '\d+',
        gettext_unit => 'seconds',
        default      => '3600',
    },

    ### Automatic list creation

    automatic_list_feature => {
        context    => [qw(domain site)],
        order      => 52.00_01,
        group      => 'automatic_lists',
        gettext_id => 'Automatic list',
        format     => ['on', 'off'],       #XXX
        default    => 'off',
    },
    automatic_list_removal => {
        context    => [qw(domain site)],
        order      => 52.00_02,
        group      => 'automatic_lists',
        gettext_id => 'Remove empty automatic list',
        gettext_comment =>
            'If set to "if_empty", then Sympa will remove automatically created mailing lists just after their creation, if they contain no list member.',
        format  => ['none', 'if_empty'],
        default => 'none',
        sample  => 'if_empty',
    },
    automatic_list_creation => {
        context    => [qw(domain site)],
        order      => 52.00_03,
        group      => 'automatic_lists',
        gettext_id => 'Who is able to create automatic list',
        default    => 'public',
        scenario   => 'automatic_list_creation',
    },
    automatic_list_families => {
        context => [qw(domain site)],
        order   => 52.00_04,
        group   => 'automatic_lists',
        sample =>
            'name=family_one:prefix=f1:display=My automatic lists:prefix_separator=+:classes separator=-:family_owners_list=alist@domain.tld;name=family_two:prefix=f2:display=My other automatic lists:prefix_separator=+:classes separator=-:family_owners_list=anotherlist@domain.tld;',
        gettext_id => 'Definition of automatic list families',
        gettext_comment =>
            "Defines the families the automatic lists are based on. It is a character string structured as follows:\n* each family is separated from the other by a semicolon (;)\n* inside a family definition, each field is separated from the other by a colon (:)\n* each field has the structure: \"<field name>=<field value>\"\nBasically, each time Sympa uses the automatic lists families, the values defined in this parameter will be available in the family object.\n* for scenarios: [family->name]\n* for templates: [% family.name %]",
        format => '.+',    #FIXME: use paragraph
    },
    parsed_family_files => {
        context    => [qw(domain site)],
        order      => 52.00_05,
        group      => 'automatic_lists',
        gettext_id => 'Parsed files for families',
        gettext_comment =>
            'comma-separated list of files that will be parsed by Sympa when instantiating a family (no space allowed in file names)',
        format     => '[-.\w]+',
        split_char => ',',
        default =>
            'message_header,message_header.mime,message_footer,message_footer.mime,info',
    },
    family_signoff => {
        context    => [qw(domain site)],
        order      => 52.00_06,
        group      => 'automatic_lists',
        gettext_id => 'Global unsubscription',
        default    => 'auth',                    # Compat. to <=6.2.52
        scenario   => 'family_signoff',
    },

    ### Tag-based spam filtering

    antispam_feature => {
        context    => [qw(domain site)],
        order      => 53.00_01,
        group      => 'antispam',
        gettext_id => 'Tag based spam filtering',
        format     => ['on', 'off'],
        default    => 'off',
    },
    antispam_tag_header_name => {
        context    => [qw(domain site)],
        order      => 53.00_02,
        group      => 'antispam',
        default    => 'X-Spam-Status',
        gettext_id => 'Header field to tag spams',
        gettext_comment =>
            'If a spam filter (like spamassassin or j-chkmail) add a header field to tag spams, name of this header field (example X-Spam-Status)',
        format => '\S+',
    },
    antispam_tag_header_spam_regexp => {
        context    => [qw(domain site)],
        order      => 53.00_03,
        group      => 'antispam',
        default    => '^\s*Yes',
        gettext_id => 'Regular expression to check header field to tag spams',
        gettext_comment =>
            'Regular expression applied on this header to verify message is a spam (example Yes)',
        format => '.+',    #FIXME: Check regexp
    },
    antispam_tag_header_ham_regexp => {
        context    => [qw(domain site)],
        order      => 53.00_04,
        group      => 'antispam',
        default    => '^\s*No',
        gettext_id => 'Regular expression to determine spam or ham.',
        gettext_comment =>
            'Regular expression applied on this header field to verify message is NOT a spam (example No)',
        format => '.+',    #FIXME: Check regexp
    },
    spam_status => {
        context    => [qw(domain site)],
        order      => 53.00_05,
        group      => 'antispam',
        default    => 'x-spam-status',
        gettext_id => 'Name of header field to inform',
        gettext_comment =>
            'Messages are supposed to be filtered by an spam filter that adds them one or more headers. This parameter is used to select a special scenario in order to decide the message\'s spam status: ham, spam or unsure. This parameter replaces antispam_tag_header_name, antispam_tag_header_spam_regexp and antispam_tag_header_ham_regexp.',
        scenario => 'spam_status',
    },

    ### Directories

    home => {
        context         => [qw(site)],
        order           => 54.00_01,
        group           => 'directories',
        default_s       => '$EXPLDIR',
        gettext_id      => 'List home',
        gettext_comment => 'Base directory of list configurations.',
        format          => '.+',
    },
    etc => {
        context    => [qw(site)],
        order      => 54.00_02,
        group      => 'directories',
        default_s  => '$SYSCONFDIR',
        gettext_id => 'Directory for configuration files',
        gettext_comment =>
            'Base directory of global configuration (except "sympa.conf").',
        format => '.+',
    },

    spool => {
        context    => [qw(site)],
        order      => 54.00_03,
        group      => 'directories',
        default_s  => '$SPOOLDIR',
        gettext_id => 'Base directory of spools',
        gettext_comment =>
            'Base directory of all spools which are created at runtime. This directory must be writable by Sympa user.',
        format => '.+',
    },
    queue => {
        context    => [qw(site)],
        order      => 54.00_04,
        group      => 'directories',
        default_s  => '$SPOOLDIR/msg',
        gettext_id => 'Directory for message incoming spool',
        gettext_comment =>
            'This spool is used both by "queue" program and "sympa_msg.pl" daemon.',
        format => '.+',
    },
    queuemod => {
        context    => [qw(site)],
        order      => 54.00_05,
        group      => 'directories',
        default_s  => '$SPOOLDIR/moderation',
        gettext_id => 'Directory for moderation spool',
        format     => '.+',
    },
    queuedigest => {
        context    => [qw(site)],
        order      => 54.00_06,
        group      => 'directories',
        default_s  => '$SPOOLDIR/digest',
        gettext_id => 'Directory for digest spool',
        format     => '.+',
    },
    queueauth => {
        context    => [qw(site)],
        order      => 54.00_07,
        group      => 'directories',
        default_s  => '$SPOOLDIR/auth',
        gettext_id => 'Directory for held message spool',
        gettext_comment =>
            'This parameter is named such by historical reason.',
        format => '.+',
    },
    queueoutgoing => {
        context    => [qw(site)],
        order      => 54.00_08,
        group      => 'directories',
        default_s  => '$SPOOLDIR/outgoing',
        gettext_id => 'Directory for archive spool',
        gettext_comment =>
            'This parameter is named such by historical reason.',
        format => '.+',
    },
    queuesubscribe => {
        context    => [qw(site)],
        order      => 54.00_09,
        group      => 'directories',
        default_s  => '$SPOOLDIR/subscribe',
        gettext_id => 'Directory for held request spool',
        gettext_comment =>
            'This parameter is named such by historical reason.',
        format => '.+',
    },
    queuetopic => {
        context    => [qw(site)],
        order      => 54.00_10,
        group      => 'directories',
        default_s  => '$SPOOLDIR/topic',
        gettext_id => 'Directory for topic spool',
        format     => '.+',
    },
    queuebounce => {
        context    => [qw(site)],
        order      => 54.00_11,
        group      => 'directories',
        default_s  => '$SPOOLDIR/bounce',
        gettext_id => 'Directory for bounce incoming spool',
        gettext_comment =>
            'This spool is used both by "bouncequeue" program and "bounced.pl" daemon.',
        format => '.+',
    },
    queuetask => {
        context    => [qw(site)],
        order      => 54.00_12,
        group      => 'directories',
        default_s  => '$SPOOLDIR/task',
        gettext_id => 'Directory for task spool',
        format     => '.+',
    },
    queueautomatic => {
        context    => [qw(site)],
        order      => 54.00_13,
        group      => 'directories',
        default_s  => '$SPOOLDIR/automatic',
        gettext_id => 'Directory for automatic list creation spool',
        gettext_comment =>
            'This spool is used both by "familyqueue" program and "sympa_automatic.pl" daemon.',
        format => '.+',
    },
    queuebulk => {
        context    => [qw(site)],
        order      => 54.00_14,
        group      => 'directories',
        default_s  => '$SPOOLDIR/bulk',
        gettext_id => 'Directory for message outgoing spool',
        gettext_comment =>
            'This parameter is named such by historical reason.',
        format => '.+',
    },
    tmpdir => {
        context   => [qw(site)],
        order     => 54.00_15,
        group     => 'directories',
        default_s => '$SPOOLDIR/tmp',
        gettext_id =>
            'Temporary directory used by external programs such as virus scanner. Also, outputs to daemons\' standard error are redirected to the files under this directory.',
        format => '.+',
    },
    viewmail_dir => {
        context    => [qw(site)],
        order      => 54.00_16,
        group      => 'directories',
        default_s  => '$SPOOLDIR/viewmail',
        gettext_id => 'Directory to cache formatted messages',
        gettext_comment =>
            'Base directory path of directories where HTML view of messages are cached.',
        format => '.+',
    },
    bounce_path => {
        context    => [qw(site)],
        order      => 54.00_17,
        group      => 'directories',
        default_s  => '$BOUNCEDIR',
        gettext_id => 'Directory for storing bounces',
        file       => 'wwsympa.conf',
        gettext_comment =>
            "The directory where bounced.pl daemon will store the last bouncing message for each user. A message is stored in the file: <bounce_path>/<list name>\@<mail domain name>/<email address>, or, if tracking is enabled: <bounce_path>/<list name>\@<mail domain name>/<email address>_<envelope ID>.\nUsers can access to these messages using web interface in the bounce management page.\nDon't confuse with \"queuebounce\" parameter which defines the spool where incoming error reports are stored and picked by bounced.pl daemon.",
        format => '.+',
    },

    arc_path => {
        context    => [qw(domain site)],
        order      => 54.00_18,
        group      => 'directories',
        default_s  => '$ARCDIR',
        gettext_id => 'Directory for storing archives',
        file       => 'wwsympa.conf',
        gettext_comment =>
            'Where to store HTML archives. This parameter is used by the "archived.pl" daemon. It is a good idea to install the archive outside the web document hierarchy to prevent overcoming of WWSympa\'s access control.',
        format => '.+',
    },

    purge_spools_task => {
        context         => [qw(site)],
        order           => 54.00_20,
        group           => 'directories',
        gettext_id      => 'Task for cleaning spools',
        gettext_comment => 'This task cleans old content in spools.',
        default         => 'daily',
        task            => 'purge_spools',
    },
    clean_delay_queue => {
        context    => [qw(site)],
        order      => 54.00_21,
        group      => 'directories',
        gettext_id => 'Max age of incoming bad messages',
        gettext_comment =>
            'Number of days "bad" messages are kept in message incoming spool (as specified by "queue" parameter). Sympa keeps messages rejected for various reasons (badly formatted, looping etc.).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '7',
    },
    clean_delay_queueoutgoing => {
        context    => [qw(site)],
        order      => 54.00_22,
        group      => 'directories',
        gettext_id => 'Max age of bad messages for archives',
        gettext_comment =>
            'Number of days "bad" messages are kept in message archive spool (as specified by "queueoutgoing" parameter). Sympa keeps messages rejected for various reasons (unable to create archive directory, to copy file etc.).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '7',
    },
    clean_delay_queuebounce => {
        context    => [qw(site)],
        order      => 54.00_23,
        group      => 'directories',
        gettext_id => 'Max age of bad bounce messages',
        gettext_comment =>
            'Number of days "bad" messages are kept in bounce spool (as specified by "queuebounce" parameter). Sympa keeps messages rejected for various reasons (unknown original sender, unknown report type).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '7',
    },
    #clean_delay_queuemod
    clean_delay_queueauth => {
        context    => [qw(site)],
        order      => 54.00_25,
        group      => 'directories',
        gettext_id => 'Max age of held messages',
        gettext_comment =>
            'Number of days messages are kept in held message spool (as specified by "queueauth" parameter). Beyond this deadline, messages that have not been confirmed are deleted.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '30',
    },
    clean_delay_queuesubscribe => {
        context    => [qw(site)],
        order      => 54.00_26,
        group      => 'directories',
        gettext_id => 'Max age of held requests',
        gettext_comment =>
            'Number of days requests are kept in held request spool (as specified by "queuesubscribe" parameter). Beyond this deadline, requests that have not been validated nor declined are deleted.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '30',
    },
    clean_delay_queuetopic => {
        context    => [qw(site)],
        order      => 54.00_27,
        group      => 'directories',
        gettext_id => 'Max age of tagged topics',
        gettext_comment =>
            'Number of days (automatically or manually) tagged topics are kept in topic spool (as specified by "queuetopic" parameter). Beyond this deadline, tagging is forgotten.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '30',
    },
    clean_delay_queueautomatic => {
        context => [qw(site)],
        order   => 54.00_28,
        group   => 'directories',
        gettext_id =>
            'Max age of incoming bad messages in automatic list creation spool',
        gettext_comment =>
            'Number of days "bad" messages are kept in automatic list creation spool (as specified by "queueautomatic" parameter). Sympa keeps messages rejected for various reasons (badly formatted, looping etc.).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '10',
    },
    clean_delay_queuebulk => {
        context    => [qw(site)],
        order      => 54.00_29,
        group      => 'directories',
        gettext_id => 'Max age of outgoing bad messages',
        gettext_comment =>
            'Number of days "bad" messages are kept in message outgoing spool (as specified by "queuebulk" parameter). Sympa keeps messages rejected for various reasons (failed personalization, bad configuration on MTA etc.).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '7',
    },
    clean_delay_queuedigest => {
        context    => [qw(site)],
        order      => 54.00_30,
        group      => 'directories',
        gettext_id => 'Max age of bad messages in digest spool',
        gettext_comment =>
            'Number of days "bad" messages are kept in digest spool (as specified by "queuedigest" parameter). Sympa keeps messages rejected for various reasons (syntax errors in "digest.tt2" template etc.).',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '14',
    },
    clean_delay_tmpdir => {
        context    => [qw(site)],
        order      => 54.00_31,
        group      => 'directories',
        gettext_id => 'Max age of temporary files',
        gettext_comment =>
            'Number of days files in temporary directory (as specified by "tmpdir" parameter), including standard error logs, are kept.',
        format       => '\d+',
        gettext_unit => 'days',
        default      => '7',
    },

    ####### Sympa services: Optional features

    ### S/MIME and TLS

    cafile => {
        context    => [qw(site)],
        order      => 59.00_01,
        group      => 'crypto',
        gettext_id => 'File containing trusted CA certificates',
        gettext_comment =>
            'This can be used alternatively and/or additionally to "capath".',
        format => '.+',
    },
    capath => {
        context    => [qw(site)],
        order      => 59.00_02,
        group      => 'crypto',
        gettext_id => 'Directory containing trusted CA certificates',
        gettext_comment =>
            "CA certificates in this directory are used for client authentication.\nThe certificates need to have names including hash of subject, or symbolic links to them with such names. The links may be created by using \"c_rehash\" script bundled in OpenSSL.",
        format => '.+',
    },
    key_passwd => {
        context    => [qw(site)],
        order      => 59.00_03,
        group      => 'crypto',
        sample     => 'your_password',
        gettext_id => 'Password used to crypt lists private keys',
        gettext_comment =>
            'If not defined, Sympa assumes that list private keys are not encrypted.',
        format     => '.+',
        field_type => 'password',
    },
    key_password => {
        context  => [qw(site)],
        obsolete => 'key_passwd',
    },
    ssl_cert_dir => {
        context    => [qw(site)],
        order      => 59.00_04,
        group      => 'crypto',
        default_s  => '$EXPLDIR/X509-user-certs',
        gettext_id => 'Directory containing user certificates',
        format     => '.+',
    },
    # Not yet implemented
    #crl_dir => {
    #    context   => [qw(site)],
    #    order     => 59.00_05,
    #    group => 'crypto',
    #    default => Sympa::Constants::EXPLDIR . '/crl',
    #},
    #chk_cert_expiration_task => {
    #    context   => [qw(site)],
    #    order     => 59.00_06,
    #    group => 'crypto',
    #},
    #crl_update_task => {
    #    context   => [qw(site)],
    #    order     => 59.00_07,
    #    group => 'crypto',
    #},

    ### Data sources page ###

    inclusion_notification_feature => {
2579
        context => [qw(list site)],
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886