]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-search.c
cli: notmuch address option defaults update
[notmuch] / notmuch-search.c
index 5036d8e44005532f9f525eb6f87c18234dccb1a4..14b9f01c5ad1d731d802e2f7a18bb5f9ef8e6597 100644 (file)
@@ -735,8 +735,8 @@ notmuch_address_command (notmuch_config_t *config, int argc, char *argv[])
     if (opt_index < 0)
        return EXIT_FAILURE;
 
-    if (! ctx->output)
-       ctx->output = OUTPUT_SENDER | OUTPUT_RECIPIENTS;
+    if (! (ctx->output & (OUTPUT_SENDER | OUTPUT_RECIPIENTS)))
+       ctx->output |= OUTPUT_SENDER;
 
     if (_notmuch_search_prepare (ctx, config,
                                 argc - opt_index, argv + opt_index))