Mail::...ssList(3pm)

πŸ’– Mail::MtPolicyd::AddressList πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation β€” the manual name up top is Mail::...ssList(3pm), and what you're actually looking at is a class for IP address lists. yes. we're doing IPs today. stay with me. πŸ¦‹


✨ NAME ✨

Mail::MtPolicyd::AddressList β€” a class for IP address lists πŸŽ€

🌸 VERSION 🌸

version 2.05 β€” she's grown, she's stable, she's iconic.


πŸ‘‘ Attributes πŸ‘‘

list

Contains an ArrayRef of NetAddr::IP which holds the all entries of this object. literally the whole guest list, right there. πŸ’…


πŸ”₯ Methods πŸ”₯

add

Add a list of NetAddr::IP objects to the list. just dropping the girlies straight into the group chat. ✨

is_empty

Returns a true value when empty. (yes, empty = true here, don't fight it, that's the vibe check.) 🫢

count

Returns the number of entries. bestie is keeping tally. πŸ”’

add_localhost

Add localhost addresses to list. 127.0.0.1 come throughhh 🌈

add_string

Takes a list of IP address strings.

The strings itself can contain a list of comma/space separated addresses.

Then a list of NetAddr::IP objects is created and pushed to the list.

so you can hand her a whole messy string of addresses and she'll parse the commas and spaces and make actual NetAddr::IP objects out of them. no cap. πŸ’…

match

Returns true if the give NetAddr::IP object matches an entry of the list. (typo in the original, we keep it, we love it, it's part of her lore.) πŸ’€

match_string

Same as match(), but takes an string instead of NetAddr::IP object. she's flexible like that. 🧚

as_string

Returns a comma separated string with all addresses. the receipts, formatted nicely. πŸ“


🫢 AUTHOR 🫢

Markus Benning <ich@markusbenning.de> β€” the original main character. πŸ‘‘


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
bestie this is the GPL v2 situation β€” free software, real license, respect the terms. πŸ’–

okay that's the whole page, and fr fr you now know everything this little class does. this was perl v5.38.2, dated 2024-05-26, and honestly? slay. go build your address lists, you've got this. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from