diff options
author | Eric Wong <e@80x24.org> | 2023-01-29 10:30:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-30 06:42:32 +0000 |
commit | 859cafe15f4c6055f7944ae4ad2d0560c8249755 (patch) | |
tree | 5b4323f9fb762ec727dfcf4100e9bb9e5208f2c0 /lib/PublicInbox/MailDiff.pm | |
parent | e6aa13bccb7ea5d5b3246b3a944621515905e360 (diff) | |
download | public-inbox-859cafe15f4c6055f7944ae4ad2d0560c8249755.tar.gz |
Since it's an extremely small class and not subclassed or anything, we'll make it even smaller as an arrayref. We also don't load this for PublicInbox::WWW or anything that runs in public-facing daemons.
Diffstat (limited to 'lib/PublicInbox/MailDiff.pm')
-rw-r--r-- | lib/PublicInbox/MailDiff.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/MailDiff.pm b/lib/PublicInbox/MailDiff.pm index 0ed06f9a..a0ecef9f 100644 --- a/lib/PublicInbox/MailDiff.pm +++ b/lib/PublicInbox/MailDiff.pm @@ -4,8 +4,6 @@ package PublicInbox::MailDiff; use v5.12; use File::Temp 0.19 (); # 0.19 for ->newdir use PublicInbox::ContentHash qw(content_digest); -use PublicInbox::ContentDigestDbg; -use Data::Dumper (); use PublicInbox::MsgIter qw(msg_part_text); use PublicInbox::ViewDiff qw(flush_diff); use PublicInbox::GitAsyncCat; @@ -34,12 +32,11 @@ sub dump_eml ($$$) { $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); - local $Data::Dumper::Useqq = 1; - local $Data::Dumper::Terse = 1; content_digest($eml, $dig); print $fh "\n", $dig->hexdigest, "\n" or die "print $!"; close $fh or die "close: $!"; |