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 assume smtpd_access_policy and 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 literally rand() β€” 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 πŸ’


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