about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiInspect.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiInspect.pm')
-rw-r--r--lib/PublicInbox/LeiInspect.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiInspect.pm b/lib/PublicInbox/LeiInspect.pm
index 8e128580..2158b996 100644
--- a/lib/PublicInbox/LeiInspect.pm
+++ b/lib/PublicInbox/LeiInspect.pm
@@ -269,10 +269,9 @@ no args allowed on command-line with --stdin
 }
 
 sub _complete_inspect {
-        my ($lei, @argv) = @_;
-        my $lms = $lei->lms or return;
-        my $match_cb = $lei->complete_url_prepare(\@argv);
-        map { $match_cb->($_) } $lms->folders;
+        require PublicInbox::LeiRefreshMailSync;
+        PublicInbox::LeiRefreshMailSync::_complete_refresh_mail_sync(@_);
+        # TODO: message-ids?, blobs? could get expensive...
 }
 
 1;