Mail::Alias::Reader::Token
Mail::Alias::Reader::Token is not only the class represents an aliases(5) parser token, but also itself is returned by Mail::Alias::Reader as a representation of a mail alias destination. For the purposes of this documentation, only the public-facing methods which facilitate the usage of instances of this class shall be discussed.
A variety of methods are provided to allow one to infer the type of a mail alias (parser token) returned.
Returns true if the mail destination described by the current token is a local part or fully qualified mail address.
Returns true if the mail destination described by the current token is a mail transfer agent directive.
Returns true if the mail destination described by the current token is a command to which mail messages should be piped.
Returns true if the mail destination described by the current token is a file to which mail messages should be appended.
Returns a parsed and unescaped logical representation of the mail alias destination that was originally parsed to yield the current token object.
Returns a string representation of the mail alias destination that was originally parsed to yield the current token object.
Erin Schoenhals <erin@cpanel.net>
Copyright (c) 2012, cPanel, Inc. All rights reserved. http://cpanel.net/
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See the LICENSE file for further details.
To install Mail::Alias::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Alias::Reader
CPAN shell
perl -MCPAN -e shell install Mail::Alias::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.