]> Sergey Matveev's repositories - public-inbox.git/commit
www: do not double-clean Message-IDs from internal DBs
authorEric Wong <e@80x24.org>
Sun, 14 Aug 2016 10:21:10 +0000 (10:21 +0000)
committerEric Wong <e@80x24.org>
Sun, 14 Aug 2016 11:04:46 +0000 (11:04 +0000)
commit5f83592e6ad3a6b7d1824e339a083db1e391145d
tree9bbcbeeeca9e4a92e90309e8520c43944480db55
parent9d1e5fadd7d18f4c96ab0509d673040e34225a04
www: do not double-clean Message-IDs from internal DBs

Ensure we usually strip one level of '<>' from Message-IDs,
since our internal SQLite, Xapian, and SHA-1 storage all
assume that.

Realistically, we screw up if somebody has '<<' or '>>',
but those are screwed up mail clients and we can deal with
it another time.  Currently, this means some messages with
'>>' in References or Message-Id are not handled correctly,
yet, but we match the behavior of Mail::Thread in keeping
the extra '>'.
lib/PublicInbox/Feed.pm
lib/PublicInbox/Hval.pm
lib/PublicInbox/View.pm