X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=7ac879f94419aa4d7783a0cb6d0be8912baad79b;hp=8f23cea23129108e7abf3985950f65bb43eed225;hb=61f0a5b8ee2adf540106a09c5f83fe634da6beb3;hpb=8bb5b6201ec2cb890655fee6ef7e540f401a4c7e diff --git a/notmuch-reply.c b/notmuch-reply.c index 8f23cea2..7ac879f9 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -628,6 +628,8 @@ notmuch_reply_command (void *ctx, int argc, char *argv[]) params.part = -1; params.cryptoctx = NULL; + argc--; argv++; /* skip subcommand argument */ + for (i = 0; i < argc && argv[i][0] == '-'; i++) { if (strcmp (argv[i], "--") == 0) { i++;