]> Sergey Matveev's repositories - public-inbox.git/commit
mid: truncate excessively long MIDs early
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sat, 3 Mar 2018 17:57:57 +0000 (17:57 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sat, 3 Mar 2018 18:12:00 +0000 (18:12 +0000)
commitae68bf5da734189549bbac3a525845a58e45d77f
tree104914b78e516ee21bb50190345c17ca3748b459
parent95bd8265dfb67ba90e7068bf5a4360168a1f30b6
mid: truncate excessively long MIDs early

Since we support duplicate MIDs in v2, we can safely truncate
long MID terms in the database and let other normal duplicate
resolution sort it out.  It seems only spammers use excessively
long MIDs, and there'll always be abuse/misuse vectors for causing
mis-threaded messages, so it's not worth worrying about
excessively long MIDs.
lib/PublicInbox/MID.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchIdxSkeleton.pm