]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Search.pm
update copyrights for 2018
[public-inbox.git] / lib / PublicInbox / Search.pm
index c7c5455d744d6fab782572c9f0af2848b55f5769..9ab5afe6d619860a1277314b5680350a109897b8 100644 (file)
@@ -1,5 +1,5 @@
-# Copyright (C) 2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2015-2018 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 # 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;
        });
 }