]> Sergey Matveev's repositories - public-inbox.git/commitdiff
mid: mid_mime uses v2-compatible mids function
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:14:44 +0000 (08:14 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 19 Mar 2018 08:16:34 +0000 (08:16 +0000)
This allows us to be more consistent in dealing with completely
empty Message-Ids.

lib/PublicInbox/MID.pm

index 422902f53bed43ab31fff3d93e817adf3d94f441..117d3c42f987e1fc2079cbccd2025f0176194085 100644 (file)
@@ -50,7 +50,8 @@ sub mid2path {
        "$x2/$x38";
 }
 
-sub mid_mime ($) { $_[0]->header_obj->header_raw('Message-ID') }
+# Only for v1 code paths:
+sub mid_mime ($) { mids($_[0]->header_obj)->[0] }
 
 sub mids ($) {
        my ($hdr) = @_;