diff options
author | Eric Wong <e@80x24.org> | 2015-08-20 08:54:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-20 08:56:12 +0000 |
commit | 9c93edcdefb01f193aced818142b050aeffc04e1 (patch) | |
tree | 0f16b4bca01c93344093a3532aa68c6bf89d54eb /lib/PublicInbox/Feed.pm | |
parent | 8c8b659c68e9191b412da7d8db03919fbace5179 (diff) | |
download | public-inbox-9c93edcdefb01f193aced818142b050aeffc04e1.tar.gz |
This is for consistency with ssoma. I doubt it makes a difference in practice, but in case somebody decides any of the Message-ID-containing headers should have strange characters, we'll decode and attempt to thread them. This isn't an attack vector, just a way to make messages thread improperly which is pointless...
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 2e352cba..bbf50615 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -254,7 +254,7 @@ sub add_to_feed { my $fullurl = $feed_opts->{fullurl} || 'http://example.com/f/'; my $header_obj = $mime->header_obj; - my $mid = $header_obj->header_raw('Message-ID'); + my $mid = $header_obj->header('Message-ID'); defined $mid or return 0; $mid = PublicInbox::Hval->new_msgid($mid); my $href = $mid->as_href . '.html'; @@ -318,7 +318,7 @@ sub add_topic { my $mime = do_cat_mail($git, $path) or return 0; $header_obj = $mime->header_obj; } - my $mid = $header_obj->header_raw('Message-ID'); + my $mid = $header_obj->header('Message-ID'); $mid = mid_compressed(mid_clean($mid)); $u = $enc_utf8->decode($u); push @$order, [ $mid, $ts, $u, $subj ]; |