{
    "mode": "perldoc",
    "parameter": "Net::DNS::Mailbox",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3AMailbox/json",
    "generated": "2026-06-13T05:41:31Z",
    "synopsis": "use Net::DNS::Mailbox;\n$mailbox = Net::DNS::Mailbox->new('user@example.com');\n$address = $mailbox->address;",
    "sections": {
        "NAME": {
            "content": "Net::DNS::Mailbox - DNS mailbox representation\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS::Mailbox;\n\n$mailbox = Net::DNS::Mailbox->new('user@example.com');\n$address = $mailbox->address;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The Net::DNS::Mailbox module implements a subclass of DNS domain name objects representing the\nDNS coded form of RFC822 mailbox address.\n\nThe Net::DNS::Mailbox1035 and Net::DNS::Mailbox2535 packages implement mailbox representation\nsubtypes which provide the name compression and canonicalisation specified by RFC1035 and\nRFC2535. These are necessary to meet the backward compatibility requirements introduced by\nRFC3597.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\n$mailbox = Net::DNS::Mailbox->new('John Doe <john.doe@example.com>');\n$mailbox = Net::DNS::Mailbox->new('john.doe@example.com');\n$mailbox = Net::DNS::Mailbox->new('john\\.doe.example.com');\n\nCreates a mailbox object representing the RFC822 mail address specified by the character string\nargument. An encoded domain name is also accepted for backward compatibility with Net::DNS 0.68\nand earlier.\n\nThe argument string consists of printable characters from the 7-bit ASCII repertoire.\n\naddress\n$address = $mailbox->address;\n\nReturns a character string containing the RFC822 mailbox address corresponding to the encoded\ndomain name representation described in RFC1035 section 8.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c)2009,2012 Dick Franks.\n\nAll rights reserved.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Permission to use, copy, modify, and distribute this software and its documentation for any\npurpose and without fee is hereby granted, provided that the original copyright notices appear\nin all copies and that both copyright notice and this permission notice appear in supporting\ndocumentation, and that the name of the author not be used in advertising or publicity\npertaining to distribution of the software without specific prior written permission.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\nBUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl, Net::DNS, Net::DNS::DomainName, RFC1035, RFC5322 (RFC822)\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::Mailbox - DNS mailbox representation",
    "flags": [],
    "examples": [],
    "see_also": []
}