To: and Cc: headers can be long and differences in long lines
are easier to view when broken apart. Just split by /,/ since
Data::Dumper will delimit with "," anyways.
sub add {
$_[0]->[0]->add($_[1]);
- print { $_[0]->[1] } Dumper([split(/^/sm, $_[1])]) or die "print $!";
+ my @dbg = split(/^/sm, $_[1]);
+ if ($dbg[0] =~ /\A(To|Cc)\0/) { # fold excessively long lines
+ @dbg = map { split(/,/s, $_) } @dbg;
+ }
+ print { $_[0]->[1] } Dumper(\@dbg) or die "print $!";
}
sub hexdigest { $_[0]->[0]->hexdigest }