---
name: "Mail::MtPolicyd::AddressList"
section: "3pm"
platform: "linux"
package: "mtpolicyd"
version: "2.05-1.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Mail::MtPolicyd::AddressList"
---

# Mail::MtPolicyd::AddressList(3pm)

a class for IP address lists

## NAME

Mail::MtPolicyd::AddressList - a class for IP address lists

## VERSION

version 2.05

## Attributes

### list

Contains an ArrayRef of NetAddr::IP which holds the all entries of this object.

## Methods

### add

Add a list of NetAddr::IP objects to the list.

### is\_empty

Returns a true value when empty.

### count

Returns the number of entries.

### add\_localhost

Add localhost addresses to list.

### 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.

### match

Returns true if the give NetAddr::IP object matches an entry of the list.

### match\_string

Same as **match()**, but takes an string instead of NetAddr::IP object.

### as\_string

Returns a comma separated string with all addresses.

## AUTHOR

Markus Benning \<ich@markusbenning.de\>

## 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
```
