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. π
β 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
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
- 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