diff --git a/doc/man/sieve-dump.1.in b/doc/man/sieve-dump.1.in index 2509ae06d8eba560b4c399487687767a34098333..faf886f8a9416122059ad33b0f7c130d298fe09d 100644 --- a/doc/man/sieve-dump.1.in +++ b/doc/man/sieve-dump.1.in @@ -40,6 +40,9 @@ the binary. .BI \-c\ config\-file Alternative Dovecot configuration file path. .TP +.B \-D +Enable Sieve debugging. +.TP .B \-h Produce per\-block hexdump output of the whole binary instead of the normal human\-readable output. diff --git a/doc/man/sievec.1.in b/doc/man/sievec.1.in index 8aca136abb5e7f8743507d5a615814a164a6ad6b..28ef9e315e88e1e405642b11707ee18d1d57d9ce 100644 --- a/doc/man/sievec.1.in +++ b/doc/man/sievec.1.in @@ -57,6 +57,9 @@ The output is identical to what the \fBsieve\-dump\fP(1) command produces for a compiled Sieve binary file. Note that this option is not allowed when the \fIout\-file\fP argument is a directory. .TP +.B \-D +Enable Sieve debugging. +.TP .BI \-x\ extensions Set the available extensions. The parameter is a space\-separated list of the active extensions. By prepending the extension identifiers with \fB+\fP or diff --git a/src/sieve-tools/sieve-dump.c b/src/sieve-tools/sieve-dump.c index cb7d399713cbdb4c72a2a12d10aea1ddbd3fb92f..7e8d28ce22d0f7cd5fc53872c33e123f425eb363 100644 --- a/src/sieve-tools/sieve-dump.c +++ b/src/sieve-tools/sieve-dump.c @@ -28,7 +28,7 @@ static void print_help(void) { printf( -"Usage: sieve-dump [-c <config-file>] [-h] [-P <plugin>] [-x <extensions>]\n" +"Usage: sieve-dump [-c <config-file>] [-D] [-h] [-P <plugin>] [-x <extensions>]\n" " <sieve-binary> [<out-file>]\n" ); } @@ -46,7 +46,7 @@ int main(int argc, char **argv) int exit_status = EXIT_SUCCESS; int c; - sieve_tool = sieve_tool_init("sieve-dump", &argc, &argv, "hP:x:", FALSE); + sieve_tool = sieve_tool_init("sieve-dump", &argc, &argv, "DhP:x:", FALSE); outfile = NULL; diff --git a/src/sieve-tools/sievec.c b/src/sieve-tools/sievec.c index c9717525bf429684192006fa5e9842387803c7bc..df60dd1413babebb07e92e5eeb83d2742fa092ac 100644 --- a/src/sieve-tools/sievec.c +++ b/src/sieve-tools/sievec.c @@ -31,7 +31,7 @@ static void print_help(void) { printf( -"Usage: sievec [-c <config-file>] [-d] [-P <plugin>] [-x <extensions>] \n" +"Usage: sievec [-c <config-file>] [-d] [-D] [-P <plugin>] [-x <extensions>] \n" " <script-file> [<out-file>]\n" ); }