aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-24 16:56:30 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-24 17:05:53 +0300
commit19f41d6c5bcebc79cfa80bf39e242e4b5e8e7a6c (patch)
treeadf4dfd289968afaf8c2e43dd38d7a5632b56d9a /src/main.c
parent1b07ddac6d91db6b051b7272262069850b4cf136 (diff)
downloadmailfromd-19f41d6c5bcebc79cfa80bf39e242e4b5e8e7a6c.tar.gz
mailfromd-19f41d6c5bcebc79cfa80bf39e242e4b5e8e7a6c.tar.bz2
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/Makefile.am: Build sa.h * mflib/sa.mf (SA_SYMBOLS, SA_REPORT) (SA_LEARN_SPAM,SA_LEARN_HAM,SA_FORGET): New constants. (sa): Wrapper over spamc for backward compatibility. * src/builtin/Makefile.am (builtin.h): Depends on builtin.def * src/builtin/body.bi (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/dspam.bi: Use _builtin_stream_cleanup for stream cleanups. * src/builtin/msg.bi (message_from_stream): Use MF_STREAM_TO_MESSAGE. * src/builtin/sa.bi (open_connection): Register returned stream for cleanup. (sa): Rewrite as spamc function. (clamav): Take message descriptor as the first argument. * src/builtin/sieve.bi (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/bctx00.at: Use current_message function. * tests/bctx01.at: Likewise. * tests/fctx00.at: Likewise. * tests/fctx01.at: Likewise.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 637bad4f..c277aa45 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.