1Email::MIME::Header(3)User Contributed Perl DocumentationEmail::MIME::Header(3)
2
3
4
6 Email::MIME::Header - the header of a MIME message
7
9 version 1.952
10
12 This object behaves like a standard Email::Simple header, with the
13 following changes:
14
15 • the "header" method automatically decodes encoded headers if
16 possible
17
18 • the "header_as_obj" method returns an object representation of the
19 header value
20
21 • the "header_raw" method returns the raw header; (read only for now)
22
23 • stringification uses "header_raw" rather than "header"
24
25 Note that "header_set" does not do encoding for you, and expects an
26 encoded header. Thus, "header_set" round-trips with "header_raw", not
27 "header"! Be sure to properly encode your headers with
28 "Encode::encode('MIME-Header', $value)" before passing them to
29 "header_set". And be sure to use minimal version 2.83 of Encode module
30 due to bugs in MIME-Header.
31
32 Alternately, if you have Unicode (character) strings to set in headers,
33 use the "header_str_set" method.
34
36 This library should run on perls released even a long time ago. It
37 should work on any version of perl released in the last five years.
38
39 Although it may work on older versions of perl, no guarantee is made
40 that the minimum required version will not be increased. The version
41 may be increased for any reason, and there is no promise that patches
42 will be accepted to lower the minimum required perl.
43
45 • Ricardo SIGNES <rjbs@semiotic.systems>
46
47 • Casey West <casey@geeknest.com>
48
49 • Simon Cozens <simon@cpan.org>
50
52 This software is copyright (c) 2004 by Simon Cozens and Casey West.
53
54 This is free software; you can redistribute it and/or modify it under
55 the same terms as the Perl 5 programming language system itself.
56
57
58
59perl v5.34.0 2022-01-21 Email::MIME::Header(3)