Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
perl5 /
vendor_perl /
Mail /
DKIM /
Delete
Unzip
Name
Size
Permission
Date
Action
ARC
[ DIR ]
drwxr-xr-x
2025-02-25 04:07
Algorithm
[ DIR ]
drwxr-xr-x
2025-02-25 04:07
Canonicalization
[ DIR ]
drwxr-xr-x
2025-02-25 04:07
AuthorDomainPolicy.pm
8.72
KB
-rw-r--r--
2020-09-07 05:49
Common.pm
4.86
KB
-rw-r--r--
2020-09-07 05:49
DNS.pm
7.76
KB
-rw-r--r--
2020-09-07 05:49
DkPolicy.pm
7.46
KB
-rw-r--r--
2020-09-07 05:49
DkSignature.pm
9.7
KB
-rw-r--r--
2020-09-07 05:49
DkimPolicy.pm
8.01
KB
-rw-r--r--
2020-09-07 05:49
Key.pm
2.72
KB
-rw-r--r--
2020-09-07 05:49
KeyValueList.pm
5.97
KB
-rw-r--r--
2020-09-07 05:49
MessageParser.pm
3.94
KB
-rw-r--r--
2020-09-07 05:49
Policy.pm
6.8
KB
-rw-r--r--
2020-09-07 05:49
PrivateKey.pm
4.68
KB
-rw-r--r--
2020-09-07 05:49
PublicKey.pm
12.58
KB
-rw-r--r--
2020-09-07 05:49
Signature.pm
22.54
KB
-rw-r--r--
2020-09-07 05:49
Signer.pm
22.17
KB
-rw-r--r--
2020-09-07 05:49
SignerPolicy.pm
3.35
KB
-rw-r--r--
2020-09-07 05:49
TextWrap.pm
8.61
KB
-rw-r--r--
2020-09-07 05:49
Verifier.pm
24.56
KB
-rw-r--r--
2020-09-07 05:49
Save
Rename
package Mail::DKIM::MessageParser; use strict; use warnings; our $VERSION = '1.20200907'; # VERSION # ABSTRACT: Signs/verifies Internet mail with DKIM/DomainKey signatures # Copyright 2005 Messiah College. All rights reserved. # Jason Long <jlong@messiah.edu> # Copyright (c) 2004 Anthony D. Urso. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. use Carp; sub new_object { my $class = shift; return $class->TIEHANDLE(@_); } sub new_handle { my $class = shift; local *TMP; tie *TMP, $class, @_; return *TMP; } sub TIEHANDLE { my $class = shift; my %args = @_; my $self = bless \%args, $class; $self->init; return $self; } sub init { my $self = shift; my $buf = ''; $self->{buf_ref} = \$buf; $self->{in_header} = 1; } sub PRINT { my $self = shift; my $buf_ref = $self->{buf_ref}; $$buf_ref .= @_ == 1 ? $_[0] : join( '', @_ ) if @_; if ( $self->{in_header} ) { local $1; # avoid polluting a global $1 while ( $$buf_ref ne '' ) { if ( substr( $$buf_ref, 0, 2 ) eq "\015\012" ) { substr( $$buf_ref, 0, 2 ) = ''; $self->finish_header(); $self->{in_header} = 0; last; } if ( $$buf_ref !~ /^(.+?\015\012)[^\ \t]/s ) { last; } my $header = $1; $self->add_header($header); substr( $$buf_ref, 0, length($header) ) = ''; } } if ( !$self->{in_header} ) { my $j = rindex( $$buf_ref, "\015\012" ); if ( $j >= 0 ) { # avoid copying a large buffer: the unterminated # last line is typically short compared to the rest my $carry = substr( $$buf_ref, $j + 2 ); substr( $$buf_ref, $j + 2 ) = ''; # shrink to last CRLF $self->add_body($$buf_ref); # must end on CRLF $$buf_ref = $carry; # restore unterminated last line } } return 1; } sub CLOSE { my $self = shift; my $buf_ref = $self->{buf_ref}; if ( $self->{in_header} ) { if ( $$buf_ref ne '' ) { # A line of header text ending CRLF would not have been # processed yet since before we couldn't tell if it was # the complete header. Now that we're in CLOSE, we can # finish the header... $$buf_ref =~ s/\015\012\z//s; $self->add_header("$$buf_ref\015\012"); } $self->finish_header; $self->{in_header} = 0; } else { if ( $$buf_ref ne '' ) { $self->add_body($$buf_ref); } } $$buf_ref = ''; $self->finish_body; return 1; } sub add_header { die 'add_header not implemented'; } sub finish_header { die 'finish_header not implemented'; } sub add_body { die 'add_body not implemented'; } sub finish_body { # do nothing by default } sub reset { carp 'reset not implemented'; } 1; __END__ =pod =encoding UTF-8 =head1 NAME Mail::DKIM::MessageParser - Signs/verifies Internet mail with DKIM/DomainKey signatures =head1 VERSION version 1.20200907 =head1 AUTHORS =over 4 =item * Jason Long <jason@long.name> =item * Marc Bradshaw <marc@marcbradshaw.net> =item * Bron Gondwana <brong@fastmailteam.com> (ARC) =back =head1 THANKS Work on ensuring that this module passes the ARC test suite was generously sponsored by Valimail (https://www.valimail.com/) =head1 COPYRIGHT AND LICENSE =over 4 =item * Copyright (C) 2013 by Messiah College =item * Copyright (C) 2010 by Jason Long =item * Copyright (C) 2017 by Standcore LLC =item * Copyright (C) 2020 by FastMail Pty Ltd =back This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. =cut