X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSearch.pm;h=9ab5afe6d619860a1277314b5680350a109897b8;hb=3d41aa23f35501ca92aab8aa42980fa73f7fa74f;hp=c7c5455d744d6fab782572c9f0af2848b55f5769;hpb=833c1c89b9b482452c2863c623f3e390545d50f0;p=public-inbox.git
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index c7c5455d..9ab5afe6 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -1,5 +1,5 @@
-# Copyright (C) 2015 all contributors
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2015-2018 all contributors
+# License: AGPL-3.0+
# based on notmuch, but with no concept of folders, files or flags
#
# Read-only search interface for use by the web and NNTP interfaces
@@ -300,7 +300,7 @@ sub lookup_mail { # no ghosts!
my ($self, $mid) = @_;
retry_reopen($self, sub {
my $smsg = lookup_message($self, $mid) or return;
- PublicInbox::SearchMsg->load_doc($smsg->{doc});
+ $smsg->load_expand;
});
}