diff options
author | Eric Wong <e@yhbt.net> | 2020-06-01 10:06:56 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-03 04:04:21 +0000 |
commit | 62b80b61d334361677e26e9ddb966e6bc5f8635d (patch) | |
tree | f10d0e4e7a0b7a1319535907581abae951e2183d /lib/PublicInbox/OverIdx.pm | |
parent | dee9a7231ca1019f56eea3596f0c428769e3eac1 (diff) | |
download | public-inbox-62b80b61d334361677e26e9ddb966e6bc5f8635d.tar.gz |
We'll continue to favor simpler data models that can be used directly rather than wasting time and memory with accessor APIs. The ->from, ->to, -cc, ->mid, ->subject, >references methods can all be trivially replaced by hash lookups since all their values are stored in doc_data. Most remaining callers of those methods were test cases, anyways. ->from_name is only used in the PSGI code, so we can just use ->psgi_cull to take care of populating the {from_name} field.
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r-- | lib/PublicInbox/OverIdx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index a078f804..c7f45a6c 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -257,7 +257,7 @@ sub add_overview { my $hdr = $mime->header_obj; my $mids = mids_for_index($hdr); my $refs = parse_references($smsg, $hdr, $mids); - my $subj = $smsg->subject; + my $subj = $smsg->{subject}; my $xpath; if ($subj ne '') { $xpath = subject_path($subj); |