path: root/src/main.c
authorSergey Poznyakoff <>2011-08-24 13:56:30 (GMT)
committer Sergey Poznyakoff <>2011-08-24 14:05:53 (GMT)
commit19f41d6c5bcebc79cfa80bf39e242e4b5e8e7a6c (patch) (side-by-side diff)
treeadf4dfd289968afaf8c2e43dd38d7a5632b56d9a /src/main.c
parent1b07ddac6d91db6b051b7272262069850b4cf136 (diff)
Improve third-party interfaces to process arbitrary messages (not only current one).
* NEWS: Updated. * doc/functions.texi: Reflect changes in sieve, clamav and sa (spamc) functions. * mflib/ Build sa.h * mflib/ (SA_SYMBOLS, SA_REPORT) (SA_LEARN_SPAM,SA_LEARN_HAM,SA_FORGET): New constants. (sa): Wrapper over spamc for backward compatibility. * src/builtin/ (builtin.h): Depends on builtin.def * src/builtin/ (current_message): Use MF_STREAM_TO_MESSAGE. * src/builtin/builtin.c: Add more includes. (_builtin_stream_cleanup): New function. (_builtin_mu_stream_to_message): New function. * src/builtin/builtin.def (_builtin_stream_cleanup) (_builtin_mu_stream_to_message): New protos. * src/builtin/ Use _builtin_stream_cleanup for stream cleanups. * src/builtin/ (message_from_stream): Use MF_STREAM_TO_MESSAGE. * src/builtin/ (open_connection): Register returned stream for cleanup. (sa): Rewrite as spamc function. (clamav): Take message descriptor as the first argument. * src/builtin/ (sieve): Take message descriptor as the first argument. Use cleanups. * src/builtin/snarf.m4 (MF_STREAM_TO_MESSAGE): New macro. * src/main.c (options): Remove "debug" option, handled by srvcfg.c * tests/ Use current_message function. * tests/ Likewise. * tests/ Likewise. * tests/ Likewise.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 637bad4..c277aa4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -400,8 +400,6 @@ static struct argp_option options[] = {
#define GRP 40
{ NULL, 0, NULL, 0,
N_("Informational and debugging options"), GRP },
- { "debug", 'd', N_("LEVEL"), 0,
- N_("set debugging level"), GRP+1 },
{ "location-column", OPTION_LOCATION_COLUMN, NULL, 0,
N_("print location column numbers in compiler diagnostics messages"),
GRP+1 },

Return to:

Send suggestions and report system problems to the System administrator.