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;
|
||||
}
|
||||
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 = (
|
||||
to => $head->get("To") || undef,
|
||||
from => $head->get("From") || undef,
|
||||
cc => $head->get("Cc") || undef,
|
||||
subject => $head->get("Subject") || undef,
|
||||
inReplyTo => $head->get("In-Reply-To") || undef,
|
||||
to => $to,
|
||||
from => $from,
|
||||
cc => $cc,
|
||||
subject => $subject,
|
||||
inReplyTo => $inReplyTo,
|
||||
date => $self->session->datetime->mailToEpoch($head->get("Date")),
|
||||
);
|
||||
my @segments = ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue