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.946
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 · Ricardo SIGNES <rjbs@cpan.org>
37
38 · Casey West <casey@geeknest.com>
39
40 · Simon Cozens <simon@cpan.org>
41
43 This software is copyright (c) 2004 by Simon Cozens and Casey West.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.28.0 2017-08-31 Email::MIME::Header(3)