aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-10-29 21:51:00 +0300
committerSergey Poznyakoff <gray@gnu.org>2016-10-29 21:51:00 +0300
commit67ef8ed97b4192faa7b09bfa4fc899587f252f6d (patch)
treed2e2355196947c31b6299a9a7487f3b3e71ad6d1
parent8a851aaa1382d188ca2968e7bbd813e99507c4ff (diff)
downloadmailfromd-67ef8ed97b4192faa7b09bfa4fc899587f252f6d.tar.gz
mailfromd-67ef8ed97b4192faa7b09bfa4fc899587f252f6d.tar.bz2
Minor fixes
-rw-r--r--lib/dbcfg.c3
-rw-r--r--pmult/pmult.c14
-rw-r--r--src/calloutd.c5
-rw-r--r--src/main.c2
-rw-r--r--src/mfdbtool.c1
-rw-r--r--src/srvcfg.c14
6 files changed, 20 insertions, 19 deletions
diff --git a/lib/dbcfg.c b/lib/dbcfg.c
index 60a46fd2..ce2644c0 100644
--- a/lib/dbcfg.c
+++ b/lib/dbcfg.c
@@ -83,7 +83,8 @@ cb_database_file(void *data, mu_config_value_t *arg)
83struct mu_cfg_param database_section_param[] = { 83struct mu_cfg_param database_section_param[] = {
84 { "file", mu_cfg_callback, NULL, 84 { "file", mu_cfg_callback, NULL,
85 offsetof(struct db_format, dbname), cb_database_file, 85 offsetof(struct db_format, dbname), cb_database_file,
86 N_("Name of the database file") }, 86 N_("Name of the database file"),
87 N_("name: string") },
87 { "enable", mu_c_bool, NULL, offsetof(struct db_format, enabled), NULL, 88 { "enable", mu_c_bool, NULL, offsetof(struct db_format, enabled), NULL,
88 N_("Enable or disable the database") }, 89 N_("Enable or disable the database") },
89 { "expire-interval", mu_cfg_callback, NULL, 90 { "expire-interval", mu_cfg_callback, NULL,
diff --git a/pmult/pmult.c b/pmult/pmult.c
index 77ec1ede..a081376d 100644
--- a/pmult/pmult.c
+++ b/pmult/pmult.c
@@ -401,21 +401,21 @@ struct mu_cfg_param client_cfg_param[] = {
401 N_("Set remote milter type. Only `milter' is understood so far."), 401 N_("Set remote milter type. Only `milter' is understood so far."),
402 /* TRANSLATORS: 'milter' and 'pmilter' are keywords, do not translate 402 /* TRANSLATORS: 'milter' and 'pmilter' are keywords, do not translate
403 them. */ 403 them. */
404 N_("{milter [version: number]|pmilter}") }, 404 N_("arg: milter [version: number]|pmilter") },
405 { "url", mu_c_string, NULL, mu_offsetof(struct pmult_client, url), NULL, 405 { "url", mu_c_string, NULL, mu_offsetof(struct pmult_client, url), NULL,
406 N_("Set remote client URL.") }, 406 N_("Set remote client URL.") },
407 { "write-timeout", mu_cfg_callback, NULL, 0, _cb_write_timeout, 407 { "write-timeout", mu_cfg_callback, NULL, 0, _cb_write_timeout,
408 N_("Set write timeout."), 408 N_("Set write timeout."),
409 N_("time") }, 409 N_("arg: interval") },
410 { "read-timeout", mu_cfg_callback, NULL, 0, _cb_read_timeout, 410 { "read-timeout", mu_cfg_callback, NULL, 0, _cb_read_timeout,
411 N_("Set read timeout."), 411 N_("Set read timeout."),
412 N_("time") }, 412 N_("arg: interval") },
413 { "eom-timeout", mu_cfg_callback, NULL, 0, _cb_eom_timeout, 413 { "eom-timeout", mu_cfg_callback, NULL, 0, _cb_eom_timeout,
414 N_("Set timeout for EOM."), 414 N_("Set timeout for EOM."),
415 N_("time") }, 415 N_("arg: interval") },
416 { "connect-timeout", mu_cfg_callback, NULL, 0, _cb_connect_timeout, 416 { "connect-timeout", mu_cfg_callback, NULL, 0, _cb_connect_timeout,
417 N_("Set connect timeout."), 417 N_("Set connect timeout."),
418 N_("time") }, 418 N_("arg: interval") },
419 { "log-level", mu_cfg_callback, NULL, 0, _cb_log_level, 419 { "log-level", mu_cfg_callback, NULL, 0, _cb_log_level,
420 N_("Set log verbosity level. Arg is a list of items separated by commas " 420 N_("Set log verbosity level. Arg is a list of items separated by commas "
421 "or whitespace. Each item is a log level optionally prefixed with `!' " 421 "or whitespace. Each item is a log level optionally prefixed with `!' "
@@ -657,7 +657,7 @@ request_auth_macros ()
657struct mu_cfg_param pmult_cfg_param[] = { 657struct mu_cfg_param pmult_cfg_param[] = {
658 { "listen", mu_cfg_callback, &portspec, 0, _cb_portspec, 658 { "listen", mu_cfg_callback, &portspec, 0, _cb_portspec,
659 N_("Listen for milter requests on the given URL."), 659 N_("Listen for milter requests on the given URL."),
660 N_("url") }, 660 N_("url: string") },
661 { "max-threads-soft", mu_c_uint, &max_threads_soft, 0, NULL, 661 { "max-threads-soft", mu_c_uint, &max_threads_soft, 0, NULL,
662 N_("Maximum number of threads (soft limit).") }, 662 N_("Maximum number of threads (soft limit).") },
663 { "max-threads-hard", mu_c_uint, &max_threads_hard, 0, NULL, 663 { "max-threads-hard", mu_c_uint, &max_threads_hard, 0, NULL,
@@ -2245,7 +2245,7 @@ alloc_die_func ()
2245 2245
2246struct mu_cli_setup cli = { 2246struct mu_cli_setup cli = {
2247 .optv = options, 2247 .optv = options,
2248 .cfg = client_cfg_param, 2248 .cfg = pmult_cfg_param,
2249 .prog_doc = prog_doc, 2249 .prog_doc = prog_doc,
2250}; 2250};
2251 2251
diff --git a/src/calloutd.c b/src/calloutd.c
index 4ad4103f..65e0b7b4 100644
--- a/src/calloutd.c
+++ b/src/calloutd.c
@@ -52,11 +52,12 @@ struct mu_cfg_param callout_cfg_param[] = {
52 { ".mfd:server", mu_cfg_section, NULL, 0, NULL, NULL }, 52 { ".mfd:server", mu_cfg_section, NULL, 0, NULL, NULL },
53 { "lock-retry-count", mu_cfg_callback, NULL, 0, 53 { "lock-retry-count", mu_cfg_callback, NULL, 0,
54 config_cb_lock_retry_count, 54 config_cb_lock_retry_count,
55 N_("Retry acquiring DBM file lock this number of times.") }, 55 N_("Retry acquiring DBM file lock this number of times."),
56 N_("arg: number") },
56 { "lock-retry-timeout", mu_cfg_callback, NULL, 0, 57 { "lock-retry-timeout", mu_cfg_callback, NULL, 0,
57 config_cb_lock_retry_timeout, 58 config_cb_lock_retry_timeout,
58 N_("Set the time span between the two DBM locking attempts."), 59 N_("Set the time span between the two DBM locking attempts."),
59 N_("time") }, 60 N_("time: interval") },
60 61
61 { NULL } 62 { NULL }
62}; 63};
diff --git a/src/main.c b/src/main.c
index 94b7f6b0..18785afa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -867,7 +867,7 @@ struct mu_cfg_param mf_cfg_param[] = {
867 { "lock-retry-timeout", mu_cfg_callback, NULL, 0, 867 { "lock-retry-timeout", mu_cfg_callback, NULL, 0,
868 config_cb_lock_retry_timeout, 868 config_cb_lock_retry_timeout,
869 N_("Set the time span between the two DBM locking attempts."), 869 N_("Set the time span between the two DBM locking attempts."),
870 N_("time") }, 870 N_("time: interval") },
871 871
872 { "max-match-mx", mu_c_size, &max_match_mx, 0, NULL, 872 { "max-match-mx", mu_c_size, &max_match_mx, 0, NULL,
873 N_("Maximum number of MXs used by MFL \"mx match\" operation.") }, 873 N_("Maximum number of MXs used by MFL \"mx match\" operation.") },
diff --git a/src/mfdbtool.c b/src/mfdbtool.c
index ab32a57c..03649f0b 100644
--- a/src/mfdbtool.c
+++ b/src/mfdbtool.c
@@ -331,7 +331,6 @@ struct mu_cfg_param mfdbtool_cfg_param[] = {
331}; 331};
332 332
333static char *capa[] = { 333static char *capa[] = {
334 "common",
335 "debug", 334 "debug",
336 "locking", 335 "locking",
337 NULL 336 NULL
diff --git a/src/srvcfg.c b/src/srvcfg.c
index b6a8f92a..a0a84d20 100644
--- a/src/srvcfg.c
+++ b/src/srvcfg.c
@@ -417,40 +417,40 @@ struct mu_cfg_param smtp_timeout_section_param[] = {
417 { "connection", mu_cfg_callback, 417 { "connection", mu_cfg_callback,
418 NULL, smtp_timeout_connect * sizeof(time_t), cb_timeout, 418 NULL, smtp_timeout_connect * sizeof(time_t), cb_timeout,
419 N_("Initial SMTP connection timeout."), 419 N_("Initial SMTP connection timeout."),
420 N_("time") }, 420 N_("time: interval") },
421 { "initial-response", 421 { "initial-response",
422 mu_cfg_callback, 422 mu_cfg_callback,
423 NULL, smtp_timeout_initial * sizeof(time_t), cb_timeout, 423 NULL, smtp_timeout_initial * sizeof(time_t), cb_timeout,
424 N_("Timeout for initial SMTP response."), 424 N_("Timeout for initial SMTP response."),
425 N_("time") }, 425 N_("time: interval") },
426 { "helo", 426 { "helo",
427 mu_cfg_callback, 427 mu_cfg_callback,
428 NULL, smtp_timeout_helo * sizeof(time_t), cb_timeout, 428 NULL, smtp_timeout_helo * sizeof(time_t), cb_timeout,
429 N_("Timeout for HELO response."), 429 N_("Timeout for HELO response."),
430 N_("time") }, 430 N_("time: interval") },
431 { "mail", 431 { "mail",
432 mu_cfg_callback, 432 mu_cfg_callback,
433 NULL, smtp_timeout_mail * sizeof(time_t), cb_timeout, 433 NULL, smtp_timeout_mail * sizeof(time_t), cb_timeout,
434 N_("Timeout for MAIL response."), 434 N_("Timeout for MAIL response."),
435 N_("time") }, 435 N_("time: interval") },
436 { "rcpt", 436 { "rcpt",
437 mu_cfg_callback, 437 mu_cfg_callback,
438 NULL, smtp_timeout_rcpt * sizeof(time_t), 438 NULL, smtp_timeout_rcpt * sizeof(time_t),
439 cb_timeout, 439 cb_timeout,
440 N_("Timeout for RCPT response."), 440 N_("Timeout for RCPT response."),
441 N_("time") }, 441 N_("time: interval") },
442 { "rset", 442 { "rset",
443 mu_cfg_callback, 443 mu_cfg_callback,
444 NULL, smtp_timeout_rset * sizeof(time_t), 444 NULL, smtp_timeout_rset * sizeof(time_t),
445 cb_timeout, 445 cb_timeout,
446 N_("Timeout for RSET response."), 446 N_("Timeout for RSET response."),
447 N_("time") }, 447 N_("time: interval") },
448 { "quit", 448 { "quit",
449 mu_cfg_callback, 449 mu_cfg_callback,
450 NULL, smtp_timeout_quit * sizeof(time_t), 450 NULL, smtp_timeout_quit * sizeof(time_t),
451 cb_timeout, 451 cb_timeout,
452 N_("Timeout for QUIT response."), 452 N_("Timeout for QUIT response."),
453 N_("time") }, 453 N_("time: interval") },
454 { NULL } 454 { NULL }
455}; 455};
456 456

Return to:

Send suggestions and report system problems to the System administrator.