about summary refs log tree commit homepage
path: root/script/public-inbox-purge
diff options
context:
space:
mode:
Diffstat (limited to 'script/public-inbox-purge')
-rwxr-xr-xscript/public-inbox-purge5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/public-inbox-purge b/script/public-inbox-purge
index 688dd950..264bcdef 100755
--- a/script/public-inbox-purge
+++ b/script/public-inbox-purge
@@ -63,6 +63,11 @@ if ($all) {
                                 mainrepo => $dir,
                         });
                 };
+
+                # somebody could "rm -r" all the Xapian directories;
+                # let them purge the overview, at least
+                $ibx->{indexlevel} ||= 'basic' unless $ibx->search;
+
                 push @inboxes, $ibx;
         }