This should prevent some false duplicates. I noticed this
while implementing "lei mail-diff", and only noticed it when
I implemented the ContentDigestDbg wrapper for mail-diff.
---
lib/PublicInbox/ContentHash.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/ContentHash.pm b/lib/PublicInbox/ContentHash.pm
index f6ae9011c1bf..bacc9cdda124 100644
--- a/lib/PublicInbox/ContentHash.pm
+++ b/lib/PublicInbox/ContentHash.pm
@@ -20,6 +20,7 @@ use Digest::SHA;
sub digest_addr ($$$) {
my ($dig, $h, $v) = @_;
$v =~ tr/"//d;
+ $v =~ tr/\r\n\t / /s;
$v =~ s/@([a-z0-9\_\.\-\(\)]*([A-Z])\S*)/'@'.lc($1)/ge;
utf8::encode($v);
$dig->add("$h\0$v\0");
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/