getting rid of carriage returns at the end of fields
This commit is contained in:
parent
b080d6f10a
commit
4c3d3c68e1
1 changed files with 15 additions and 5 deletions
|
|
@ -151,12 +151,22 @@ sub getNextMessage {
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
my $head = $parsedMessage->head;
|
my $head = $parsedMessage->head;
|
||||||
|
my $to = $head->get("To") || undef;
|
||||||
|
chomp($to);
|
||||||
|
my $from = $head->get("From") || undef;
|
||||||
|
chomp($from);
|
||||||
|
my $cc = $head->get("Cc") || undef;
|
||||||
|
chomp($cc);
|
||||||
|
my $subject = $head->get("Subject") || undef;
|
||||||
|
chomp($subject);
|
||||||
|
my $inReplyTo = $head->get("In-Reply-To") || undef;
|
||||||
|
chomp($inReplyTo);
|
||||||
my %data = (
|
my %data = (
|
||||||
to => $head->get("To") || undef,
|
to => $to,
|
||||||
from => $head->get("From") || undef,
|
from => $from,
|
||||||
cc => $head->get("Cc") || undef,
|
cc => $cc,
|
||||||
subject => $head->get("Subject") || undef,
|
subject => $subject,
|
||||||
inReplyTo => $head->get("In-Reply-To") || undef,
|
inReplyTo => $inReplyTo,
|
||||||
date => $self->session->datetime->mailToEpoch($head->get("Date")),
|
date => $self->session->datetime->mailToEpoch($head->get("Date")),
|
||||||
);
|
);
|
||||||
my @segments = ();
|
my @segments = ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue