Mail::...equest(3pm)
π Mail::MtPolicyd::Client::Request(3pm) π
okay bestie, welcome to the manual page for Mail::MtPolicyd::Client::Request(3pm) β she's a Perl module, she's part of the User Contributed Perl Documentation, and she's here to help you build policyd requests. let's get into it π«Ά
β¨ NAME β¨
Mail::MtPolicyd::Client::Request β a postfix policyd client request class. that's it, that's the whole vibe π
πΈ VERSION πΈ
version 2.05 β yes she has a version number, she's official π
π¦ DESCRIPTION π¦
so basically? this is the class you use for construction of policyd requests. that's the whole job. she builds requests. iconic behavior, honestly π
π SYNOPSIS π
here's how you actually use her, no cap:
use Mail::MtPolicyd::Client::Request;
$request = Mail::MtPolicyd::Client::Request->new(
'client_address' => '127.0.0.1',
);
look at that. three lines. she's lowkey elegant ππ
β METHODS β
as_stringβ Returns the request in as a string in the policyd request format. like, she takes all your little attributes and turns them into one string you can actually send. slay β¨
π ATTRIBUTES π
typeβ (default:smtpd_access_policy) The type of the request. if you don't say anything, she's gonna assumesmtpd_access_policyand honestly that's her default main character energy πinstanceβ (default:rand()) The instance ID of the mail processed by the MTA. yeah, the default is literallyrand()β she just makes one up for you, so if you want a specific instance ID you gotta pass it yourself bestie πattributesβ (default:{}) A hashref with contains all key/value pairs of the request. this is where all the actual content lives. it's giving "everything bag π". default is an empty hashref{}so nothing goes in until you put it there.
ngl, if you don't set your attributes, your request is gonna be real quiet. just saying. π«Ά
π§ AUTHOR π§
Markus Benning <ich@markusbenning.de> β ty for your service, king π
π 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
so yeah, GPL v2, June 1991. free software, do your thing, respect the license, periodt π
okay that's the whole page bestie, you're now fully certified in Mail::MtPolicyd::Client::Request πβ¨
this page came to you courtesy of perl v5.38.2 and it was last touched on 2024-05-26 β big love to whoever regenerated it, you're doing amazing sweetie π«Άππ·
go build some requests, i believe in you ππ¦πΈ
π¦ 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