Email::...::Header(3)

πŸ’– NAME πŸ’–

okay bestie, welcome to the Email::...::Header(3) page β€” User Contributed Perl Documentation, and fr fr this module is Email::MIME::Header: literally the header of a MIME message. πŸ‘‘


πŸ”₯ VERSION πŸ”₯

This one is version 1.954. slay. ✨


✨ DESCRIPTION ✨

So this object lowkey behaves like a standard Email::Simple header, but with a few iconic plot twists:

  • the header method automatically decodes encoded headers if possible πŸ’…
  • the header_as_obj method returns an object representation of the header value πŸŽ€
  • the header_raw method returns the raw header; (read only for now) 🫢
  • stringification uses header_raw rather than header πŸ‘€
⚠️ okay bestie, important: header_set does not do encoding for you, and expects an encoded header. Thus, header_set round-trips with header_raw, not header! 😭 Be sure to properly encode your headers with Encode::encode('MIME-Header', $value) before passing them to header_set. And be sure to use minimal version 2.83 of Encode module due to bugs in MIME-Header. no cap.

Alternately, if you have Unicode (character) strings to set in headers, use the header_str_set method. πŸ¦‹


🐚 PERL VERSION 🐚

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. periodt. πŸ’€


πŸ‘‘ AUTHORS πŸ‘‘

  • Ricardo SIGNES β€” cpan@semiotic.systems πŸ’œ
  • Casey West β€” casey@geeknest.com 🌸
  • Simon Cozens β€” simon@cpan.org 🧚

This software is copyright (c) 2004 by Simon Cozens and Casey West.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 🫢


mwah πŸ’‹ β€” cute sign-off from perl v5.42.0, dated 2024-05-03. go decode those headers, bestie! πŸŽ€

πŸ“¦ where this page comes from