]> git.cworth.org Git - notmuch/blobdiff - notmuch-compact.c
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / notmuch-compact.c
index 361583db878b1ba4863db1b1f8720bb6175152e5..40ffb4286b5f7db086a89720a657b89176a2aea0 100644 (file)
@@ -27,7 +27,7 @@ status_update_cb (const char *msg, unused (void *closure))
 }
 
 int
-notmuch_compact_command (unused(notmuch_config_t *config), notmuch_database_t *notmuch, int argc, char *argv[])
+notmuch_compact_command (notmuch_database_t *notmuch, int argc, char *argv[])
 {
     const char *backup_path = NULL;
     notmuch_status_t ret;
@@ -45,12 +45,7 @@ notmuch_compact_command (unused(notmuch_config_t *config), notmuch_database_t *n
     if (opt_index < 0)
        return EXIT_FAILURE;
 
-    if (notmuch_requested_db_uuid) {
-       fprintf (stderr, "Error: --uuid not implemented for compact\n");
-       return EXIT_FAILURE;
-    }
-
-    notmuch_process_shared_options (argv[0]);
+    notmuch_process_shared_options (NULL, argv[0]);
 
     if (! quiet)
        printf ("Compacting database...\n");