FTN::Crypt::Nodelist - Nodelist processing for the FTN::Crypt module.
use FTN::Crypt::Nodelist; my $obj = FTN::Crypt::Nodelist->new( Nodelist => 'NODELIST.*', Pointlist => [ 'pointlist_1.*', 'pointlist_2', ], Username => 'user', # optional, defaults to 'sysop' ); my ($addr, $method) = $obj->get_email_addr('99:8877/1');
Constructor.
Nodelist: Path to nodelist file(s), either scalar or arrayref. If contains wildcard, file with maximum number in digital extension will be selected.
Nodelist
Optional Pointlist: Path to pointlist file(s), either scalar or arrayref. If contains wildcard, file with maximum number in digital extension will be selected.
Pointlist
Optional Username: Username part in email address, which corresponds to the FTN one, defaults to 'sysop'.
Username
Created object or error in FTN::Crypt::Nodelist->error.
FTN::Crypt::Nodelist->error
Sample:
my $obj = FTN::Crypt::Nodelist->new( Nodelist => 'NODELIST.*', Pointlist => [ 'pointlist_1.*', 'pointlist_2', ], Username => 'user', # optional, defaults to 'sysop' );
If recipient supports PGP encryption, get recipient's email address and encryption method.
Recipient's FTN address.
Recipient's email address and encryption method or error in $obj->error.
$obj->error
my ($addr, $method) = $obj->get_email_addr('99:8877/1') or die $obj->error;
Petr Antonov, <pietro@cpan.org>
Copyright (C) 2019 by Petr Antonov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses at https://opensource.org/licenses/Artistic-1.0, and http://www.gnu.org/licenses/gpl-2.0.html.
This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
To install FTN::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FTN::Crypt
CPAN shell
perl -MCPAN -e shell install FTN::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.