use warnings;
use strict;
use vars qw($VERSION $DEBUG %EXPORT_TAGS @EXPORT_OK @EXPORT);
-use base qw(Exporter);
+use Exporter qw(import);
use IPC::Open3;
use POSIX qw(:sys_wait_h strftime);
$r_l{subject} = 'Re: '. $r_l{subject} unless $r_l{subject} =~ /(?:^|\s)Re:\s+/;
$r_l{subject} =~ s/(?:^\s*|\s*$)//g;
$r_l{'In-Reply-To'} = $head->get('Message-Id');
+ $r_l{'In-Reply-To'} =~ s/(?:^\s*|\s*$)//g if defined $r_l{'In-Reply-To'};
delete $r_l{'In-Reply-To'} unless defined $r_l{'In-Reply-To'};
$r_l{References} = ($head->get('References')//''). ' '.($head->get('Message-Id')//'');
+ $r_l{References} =~ s/(?:^\s*|\s*$)//g;
my $date = $head->get('Date') // 'some date';
$date =~ s/(?:^\s*|\s*$)//g;
my $who = $head->get('From') // $head->get('Reply-To') // 'someone';
}
if (defined $part->bodyhandle and
$part->effective_type =~ /text/) {
- print STDERR $part->effective_type."\n";
$b_h = $part->bodyhandle;
last;
}