.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "Dpkg::Email::AddressList 3perl" .TH Dpkg::Email::AddressList 3perl 2026-01-23 1.23.5-dirty libdpkg-perl .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Dpkg::Email::AddressList \- manage email address lists .SH DESCRIPTION .IX Header "DESCRIPTION" It provides a class which is able to manage email address lists, as used in \fBdeb822\fR\|(5) data. .SH FUNCTIONS .IX Header "FUNCTIONS" .ie n .IP "$regex = \fBPARSE_REGEX()\fR" 4 .el .IP "\f(CW$regex\fR = \fBPARSE_REGEX()\fR" 4 .IX Item "$regex = PARSE_REGEX()" Returns the regex used to parse email address lists. .Sp Matches on a single entire email address. .ie n .IP "$regex = \fBCHECK_REGEX()\fR" 4 .el .IP "\f(CW$regex\fR = \fBCHECK_REGEX()\fR" 4 .IX Item "$regex = CHECK_REGEX()" Returns the regex used to validate email address lists. .SH METHODS .IX Header "METHODS" .ie n .IP "$addrlist = Dpkg::Email::AddressList\->new($string)" 4 .el .IP "\f(CW$addrlist\fR = Dpkg::Email::AddressList\->new($string)" 4 .IX Item "$addrlist = Dpkg::Email::AddressList->new($string)" Create a new object that can hold an email address list. .ie n .IP "@addrlist = $addrlist\->\fBaddrlist()\fR" 4 .el .IP "\f(CW@addrlist\fR = \f(CW$addrlist\fR\->\fBaddrlist()\fR" 4 .IX Item "@addrlist = $addrlist->addrlist()" Returns a list of Dpkg::Email::Address objects that art part of this email address list object. .ie n .IP "$bool = $addrlist\->parse($string)" 4 .el .IP "\f(CW$bool\fR = \f(CW$addrlist\fR\->parse($string)" 4 .IX Item "$bool = $addrlist->parse($string)" Parses \f(CW$string\fR into the current object replacing the current address list. .Sp Will die on parse errors. .ie n .IP "$bool = $addrlist\->contains($addr)" 4 .el .IP "\f(CW$bool\fR = \f(CW$addrlist\fR\->contains($addr)" 4 .IX Item "$bool = $addrlist->contains($addr)" Checks whether the \f(CW$addr\fR Dpkg::Email::Address is present in the email address list. .ie n .IP "$string = $addrlist\->\fBas_string()\fR" 4 .el .IP "\f(CW$string\fR = \f(CW$addrlist\fR\->\fBas_string()\fR" 4 .IX Item "$string = $addrlist->as_string()" Returns the email address list formatted as a string of email addresses separated by commas. .SH CHANGES .IX Header "CHANGES" .SS "Version 0.xx" .IX Subsection "Version 0.xx" This is a private module.