It is less confusing without the clobber assignment; and
PublicInbox::MIME exists to workaround bugs in older
Email::MIME (which is in Debian 9 (stretch))
sub do_add ($$) {
my ($im, $msg) = @_;
$$msg =~ s/(\r?\n)+\z/$1/s;
sub do_add ($$) {
my ($im, $msg) = @_;
$$msg =~ s/(\r?\n)+\z/$1/s;
- $msg = Email::MIME->new($$msg);
- $msg = $vger->scrub($msg);
+ my $mime = PublicInbox::MIME->new($msg);
+ $mime = $vger->scrub($mime);
- $msg->header_obj->header_raw('Message-ID'), "\n";
+ $mime->header_obj->header_raw('Message-ID'), "\n";
}
# asctime: From example@example.com Fri Jun 23 02:56:55 2000
}
# asctime: From example@example.com Fri Jun 23 02:56:55 2000