- printf ("Compacting database...\n");
- ret = notmuch_database_compact (path, backup_path, status_update_cb, NULL);
+ if (! quiet)
+ printf ("Compacting database...\n");
+ ret = notmuch_database_compact (path, backup_path,
+ quiet ? NULL : status_update_cb, NULL);