From af2e250ca2704d06afe0a7ed862dcfca7f740de7 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Fri, 2 Mar 2018 09:53:11 +0000 Subject: searchidx: use new `references' method for parsing References It's shorter and more convenient, here. --- lib/PublicInbox/MID.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/PublicInbox/MID.pm') diff --git a/lib/PublicInbox/MID.pm b/lib/PublicInbox/MID.pm index 786c056f..4ccb704d 100644 --- a/lib/PublicInbox/MID.pm +++ b/lib/PublicInbox/MID.pm @@ -68,6 +68,9 @@ sub uniq_mids { } sub mids { uniq_mids($_[0], 'Message-Id') } + +# last References should be IRT, but some mail clients do things +# out of order, so trust IRT over References iff IRT exists sub references { uniq_mids($_[0], 'References', 'In-Reply-To') } # RFC3986, section 3.3: -- cgit v1.2.3-24-ge0c7