diff options
author | Eric Wong <e@80x24.org> | 2023-04-25 10:50:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-04-25 20:51:34 +0000 |
commit | c4a87bb8552579f5414496a38bec3c3ee585c37c (patch) | |
tree | 36e5b7f02862b1ad9f43eb09da8d30b158ad48dd /lib/PublicInbox/MailDiff.pm | |
parent | b00cfa89a6e0a9fc89aedf1a66172c4ad0566ece (diff) | |
download | public-inbox-c4a87bb8552579f5414496a38bec3c3ee585c37c.tar.gz |
Some messages only differ in the To/Cc headers because some MTAs seem to normalize them. I was getting confused when I saw some /d/ endpoints with no visible differences
Diffstat (limited to 'lib/PublicInbox/MailDiff.pm')
-rw-r--r-- | lib/PublicInbox/MailDiff.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/PublicInbox/MailDiff.pm b/lib/PublicInbox/MailDiff.pm index d9733ed4..994c7851 100644 --- a/lib/PublicInbox/MailDiff.pm +++ b/lib/PublicInbox/MailDiff.pm @@ -7,6 +7,7 @@ use PublicInbox::ContentHash qw(content_digest); use PublicInbox::MsgIter qw(msg_part_text); use PublicInbox::ViewDiff qw(flush_diff); use PublicInbox::GitAsyncCat; +use PublicInbox::ContentDigestDbg; sub write_part { # Eml->each_part callback my ($ary, $self) = @_; @@ -33,11 +34,6 @@ sub dump_eml ($$$) { local $self->{curdir} = $dir; mkdir $dir or die "mkdir($dir): $!"; $eml->each_part(\&write_part, $self); - - return if $self->{ctx}; # don't need content_digest noise in WWW UI - require PublicInbox::ContentDigestDbg; - - # XXX is this even useful? perhaps hide it behind a CLI switch open my $fh, '>', "$dir/content_digest" or die "open: $!"; my $dig = PublicInbox::ContentDigestDbg->new($fh); content_digest($eml, $dig); |