init III
This commit is contained in:
30
Perl OTRS/Kernel/cpan-lib/Mail/Mailer/rfc822.pm
Normal file
30
Perl OTRS/Kernel/cpan-lib/Mail/Mailer/rfc822.pm
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyrights 1995-2016 by [Mark Overmeer <perl@overmeer.net>].
|
||||
# For other contributors see ChangeLog.
|
||||
# See the manual pages for details on the licensing terms.
|
||||
# Pod stripped from pm file by OODoc 2.02.
|
||||
use strict;
|
||||
|
||||
package Mail::Mailer::rfc822;
|
||||
use vars '$VERSION';
|
||||
$VERSION = '2.18';
|
||||
|
||||
use base 'Mail::Mailer';
|
||||
|
||||
sub set_headers
|
||||
{ my ($self, $hdrs) = @_;
|
||||
|
||||
local $\ = "";
|
||||
|
||||
foreach (keys %$hdrs)
|
||||
{ next unless m/^[A-Z]/;
|
||||
|
||||
foreach my $h ($self->to_array($hdrs->{$_}))
|
||||
{ $h =~ s/\n+\Z//;
|
||||
print $self "$_: $h\n";
|
||||
}
|
||||
}
|
||||
|
||||
print $self "\n"; # terminate headers
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user