Net::POP3S(3)
π Net::POP3S π
okay so bestie, we're looking at a page from the User Contributed Perl Documentation and it's literally called Net::POP3S(3). yes the name is the same as the command, that's just how perl docs roll. let's get into it π«Ά
β¨ NAME β¨
Net::POP3S β SSL/STARTTLS support for Net::POP3
πΈ SYNOPSYS πΈ
(not me keeping the typo, it's in the original and I refuse to gaslight you π )
use Net::POP3S;
my $ssl = 'ssl'; # 'ssl' / 'starttls'|'stls' / undef
my $pop3 = Net::POP3S->new("pop.example.com", Port => 995, doSSL => $ssl);
π¦ DESCRIPTION π¦
So basically this module is a little wrapper around Net::POP3 that adds over-SSL/STARTTLS support. it inherits all the methods from Net::POP3, so every single friendly option that came bundled with Net::POP3? yeah you get all of those, no cap. π
You control the SSL usage with options on the new() constructor method. the doSSL option is the switch β that's the main character here. and if you wanna control detailed SSL settings, you can set SSL_* options that are brought from IO::Socket::SSL. for the deets on those, go read the IO::Socket::SSL documentation. iykyk π
There's literally just one method difference from Net::POP3: you can select the POP AUTH mechanism as the third option of the auth() method. that's it, that's the whole glow-up.
β οΈ important lore: as of Version 3.10 of Net::POP3 (libnet) includes SSL/STARTTLS capabilities, so this wrapper module's significance is disappareing. (their spelling, not mine π«£) so like... it ate, but its era is kinda ending bestie.
π CONSTRUCTOR π
new ( [ HOST ] [, OPTIONS ] )
A few options added to Net::POP3(2.X). π«
doSSL { "ssl" | "starttls" | undef }β this one specifies the SSL connection type."ssl"makes the connection wrapped with SSL, and"starttls"uses the POP3 command"STLS". pick your fighter π
π METHODS π
Most of all methods of Net::POP3 are inherited as is β except auth(). the one diva that does its own thing. π
auth ( USERNAME, PASSWORD [, AUTHMETHOD])
Attempt SASL authentication through the Authen::SASL module. AUTHMETHOD is your required method of authentication, like 'CRAM-MD5', 'LOGIN', ... etc. the default is 'CRAM-MD5'. β¨
starttls ( SSLARGS )
Upgrade an existing plain connection to SSL. glow-up in real time, no surgery needed π
π₯ SEE ALSO π₯
Net::POP3IO::Socket::SSLAuthen::SASL
π AUTHOR π
Tomo.M <tomo at cpan org>
πΈ COPYRIGHT AND LICENSE πΈ
Copyright (C) 2020 by Tomo.M
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.8 or, at your option, any later version of Perl 5 you may have available.
and that's the whole page bestie π this was Net::POP3S(3) from the User Contributed Perl Documentation, brought to you by perl v5.42.0, dated 2025-07-25. slay, stay encrypted, and don't forget your doSSL β¨ππ¦
π¦ where this page comes from
- fedora 43: perl-Net-POP3S 0.12-15.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms