Mail::...:Client(3pm)
π Mail::MtPolicyd::Client π
okay bestie, gather round, because this one is the perl manual page for Mail::MtPolicyd::Client β yeah, the whole thing lives in the User Contributed Perl Documentation, section 3pm, and it's giving "small but mighty." π«Ά
β¨ NAME β¨
Mail::MtPolicyd::Client β a policyd client class πΈ
π VERSION π
version 2.05 β¨
π¦ DESCRIPTION π¦
It's a client class. Its whole entire job? Querying a policyd server. That's it, that's the vibe. π
π SYNOPSIS π
here's the moment, the main character energy, the code:
use Mail::MtPolicyd::Client;
use Mail::MtPolicyd::Client::Request;
my $client = Mail::MtPolicyd::Client->new(
host => 'localhost:12345',
keepalive => 1,
);
my $request = Mail::MtPolicyd::Client::Request->new(
'client_address' => '192.168.0.1',
);
my $response = $client->request( $request );
print $response->as_string;
like?? it's so clean. obsessed. π₯
π METHODS π
request ( $request )β bestie this one will send aMail::MtPolicyd::Client::Requestoff to the remote host, and hand you back aMail::MtPolicyd::Client::Response. no cap, that's the whole deal. π
π ATTRIBUTES π
socket_path(default:undef) β the path of a socket on the policyd server. if you actually define it, then that socket gets used instead of a tcp connection. lowkey a whole different route. π¦host(default:localhost:12345) β the remote address/port of the policyd server. πkeepalive(default:0) β keep the connection open so you can fire off multiple requests. one connection, many moments. π
πΈ AUTHOR πΈ
Markus Benning <ich@markusbenning.de> π
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
periodt. π
and that's a wrap, my love β this page is from perl v5.38.2, dated 2024-05-26, and it's the Mail::MtPolicyd::Client(3pm) manual. go query that policyd server, you absolute icon πβ¨π«Ά
π¦ where this page comes from
- debian trixie: mtpolicyd 2.05-1.2 Β· GPL-2.0-only
- ubuntu questing: mtpolicyd 2.05-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms