From: Eric Wong (Contractor, The Linux Foundation) Date: Wed, 18 Apr 2018 09:13:11 +0000 (+0000) Subject: v2: improve deduplication checks X-Git-Tag: v1.1.0-pre1~30 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f0ef0a56a8957d6f3095b1a24798e54b0b815d04;hp=f0ef0a56a8957d6f3095b1a24798e54b0b815d04;p=public-inbox.git v2: improve deduplication checks First off, decode text portions of messages since some archived mail I got was converted from quoted-printable or base-64 to 8bit by the original recipient. Attempting to merge them with my own archives (which had no conversion done) led to unnecessary duplicates showing up. Then, normalize CRLF line endings in text portions to LF. In the headers, we relax the content_id hashing to ignore quotes and lower-case domain names in To, Cc, and From headers since some mail processors will alter them. Finally, I've discovered Email::MIME->new($mime->as_string) does not always round-trip reliably, so we calculate the content_id twice on user-supplied messages. ---