Net::I...Address(3pm)

πŸ’Œ Net::IMAP::Client::MsgAddress β€” email address object

okay bestie, welcome to Net::IMAP::Client::MsgAddress, straight out of the Net::I...Address(3pm) manual in the User Contributed Perl Documentation. it's one little object that holds one little email address, and it eats, sleeps and breathes IMAP. let's get into it πŸ’–


✨ NAME ✨

Net::IMAP::Client::MsgAddress β€” it's an email address object, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so what is this thing? it represents one email address, exactly as the server hands it back to you inside an ENVELOPE part of the FETCH command. that's the whole vibe. one address, one object. πŸ’…

and here's the iconic part: when you use this object in string context, it magically translates itself into:

Full Name <email@address.com>

like, the object just knows. main character energy, no cap. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

⭐ new β€” the constructor πŸ’…

Creates a new object from the given array.

okay so the rest of these are the bits that live inside the object. here's the full roster, bestie:
  • name β€” Returns the full name, if any.
  • at_domain_list β€” Returns the at_domain_list part (WTF is that?). yeah, the docs genuinely say that, i'm not even kidding 😭
  • mailbox β€” Returns the mailbox name (i.e. the 'email' part in the example above).
  • host β€” Returns the host name (i.e. the 'address.com' part).
  • email β€” Returns the full email address: "$self-"{mailbox} . '@' . $self->{host}>.
  • as_string β€” Used by stringification. It returns the full name and email address as in Full Name <email@address.com>.

🌸 SEE ALSO 🌸

go check out the rest of the family, they're all serving looks:

  • Net::IMAP::Client
  • Net::IMAP::Client::MsgSummary

πŸ‘‘ AUTHOR πŸ‘‘

Mihai Bazon, <mihai.bazon@gmail.com>


Copyright (c) Mihai Bazon 2008. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


πŸ’€ DISCLAIMER OF WARRANTY πŸ’€

ngl bestie, this part is all-caps for a reason. it's giving "we told you so". read it, don't skim it πŸ™ˆ

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


aaaand that's the whole page, bestie 🫢 this lil' doc came to you courtesy of perl v5.40.1, dated 2025-12-07. go parse some envelopes, you absolute icon. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from