Mail::...esponse(3pm)

πŸ’– Mail::MtPolicyd::Client::Response πŸ’–

okay bestie, so the man page header literally calls this thing Mail::...esponse(3pm) (the truncation is iconic, honestly, we love a mysterious abbreviation), but the actual module living in this doc is Mail::MtPolicyd::Client::Response. It's from the User Contributed Perl Documentation crew. Come sit, let's read it together 🫢

✨ VERSION ✨

version 2.05 β€” she's got a number, she's got a whole identity.


🌸 DESCRIPTION 🌸

This is the class that handles a policyd response. That's it. That's the job. It takes the response and it handles it. main character energy, no cap πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

Here's how you actually use her. First flavor: build one straight off a filehandle.

use Mail::MtPolicyd::Client::Response;
my $response = Mail::MtPolicyd::Client::Response->new_from_fh( $conn );

Then there's a cute little -- divider, and flavor two: construct one by hand with your own action and attributes.

my $response = Mail::MtPolicyd::Client::Response->new(
  action => 'reject',
  attributes => {
    action => 'reject',
  },
);

print $response->as_string;

Look at her go. She prints herself. Obsessed 😭✨


πŸ”₯ METHODS πŸ”₯

  • new_from_fh( $filehandle ) β€” the constructor that reads a response from the supplied filehandle. You hand her a filehandle, she reads the response off it. That's the whole vibe.
  • as_string β€” returns a stringified version of the response. She said "let me put myself into words." Slay.

πŸ‘‘ ATTRIBUTES πŸ‘‘

  • action (required) β€” the action specified in the response. Yes bestie, it's required, she will not be showing up without it. Not optional. Not negotiable. Required. πŸ’€
  • attributes β€” holds a hash with all key/values of the response. Everything the response is carrying, in one hash. A little bag of response lore πŸŽ€

🌈 AUTHOR 🌈

Markus Benning <ich@markusbenning.de> β€” the legend, the architect, the one who made her πŸ’œ


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
GPL v2, June 1991 β€” free software, and the license text says exactly that, so don't go making up your own rules, bestie 🧚

and that's the whole page, start to finish πŸ’… she's documented by perl v5.38.2, dated 2024-05-26, and filed under Mail::...esponse(3pm). mwah, bye πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from