aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-11-10 06:11:58 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2016-11-10 06:11:58 +0000
commite4cf769d7306fa8cf215cea8cfe05d88c62f86c8 (patch)
treea46d2c8d0a6627e8683fc8397799f863a7291c54
parentc9180c6b546aedc1614ddababe180dd010e80af0 (diff)
downloadwyslij-po-e4cf769d7306fa8cf215cea8cfe05d88c62f86c8.tar.gz
wyslij-po-e4cf769d7306fa8cf215cea8cfe05d88c62f86c8.tar.bz2
Fix --dry-run option
-rw-r--r--configure.ac2
-rw-r--r--src/main.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6c60d36..1f74537 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,7 @@ AC_TYPE_SIZE_T
gl_INIT
# Check for GNU Mailutils
-AM_GNU_MAILUTILS(2.99.992, [auth mailer])
+AM_GNU_MAILUTILS(3.0, [auth mailer])
# Gettext.
AM_ICONV
diff --git a/src/main.c b/src/main.c
index aa5dcea..1045571 100644
--- a/src/main.c
+++ b/src/main.c
@@ -466,7 +466,7 @@ static struct mu_cli_setup cli = {
.prog_args = args_doc,
};
-int
+void
my_getopt(int *pargc, char ***pargv, char **capa)
{
struct mu_parseopt pohint;
@@ -513,6 +513,9 @@ main (int argc, char **argv)
exit (1);
}
+ if (dry_run)
+ verbose++;
+
if (!sender && !set_sender_from_po)
sender = mu_get_user_email (NULL);

Return to:

Send suggestions and report system problems to the System administrator.