]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtSearch.pm
nntp: inline CRLF in all response lines
[public-inbox.git] / lib / PublicInbox / ExtSearch.pm
index cd7cba2e88ce217bbc036a1655f479b291304efe..2460d74f5bdbda074be7cdea059c4025993b43ab 100644 (file)
@@ -64,7 +64,7 @@ SELECT ibx_id FROM inboxes WHERE eidx_key = ? LIMIT 1
        $sth = $dbh->prepare_cached(<<'', undef, 1);
 SELECT docid FROM xref3 WHERE oidbin = ? AND xnum = ? AND ibx_id = ? LIMIT 1
 
-       $sth->bind_param(1, pack('H*', $xsmsg->{blob}), SQL_BLOB);
+       $sth->bind_param(1, $xsmsg->oidbin, SQL_BLOB);
 
        # NNTP::cmd_over can set {num} to zero according to RFC 3977 8.3.2
        $sth->bind_param(2, $xsmsg->{num} || $xsmsg->{-orig_num});
@@ -112,6 +112,11 @@ sub description {
                '$EXTINDEX_DIR/description missing';
 }
 
+sub search {
+       PublicInbox::Inbox::_cleanup_later($_[0]);
+       $_[0];
+}
+
 no warnings 'once';
 *base_url = \&PublicInbox::Inbox::base_url;
 *smsg_eml = \&PublicInbox::Inbox::smsg_eml;
@@ -121,6 +126,6 @@ no warnings 'once';
 *recent = \&PublicInbox::Inbox::recent;
 
 *max_git_epoch = *nntp_usable = *msg_by_path = \&mm; # undef
-*isrch = *search = \&PublicInbox::Search::reopen;
+*isrch = \&search;
 
 1;