1        Cone©
2
3MAIL::HEADER::ENCODE(3x)Cone: COnsole Newsreader And EMAIL::HEADER::ENCODE(3x)
4
5
6

NAME

8       mail::Header::encoded - An unstructured E-mail header.
9

SYNOPSIS

11       #include <libmail/headers.H>
12
13       mail::Header::encoded encoded_header("Subject", subjectStr, "UTF-8", "EN");
14
15       std::cout << encoded_header.toString();
16
17

USAGE

19       This class creates unstructured E-mail header. Three arguments are
20       provided to the constructor: the header's name, its content, and the
21       content's character set. Non-US-ASCII portions of the contents are
22       encoded according to RFC 2047[1].
23
24       The fourth argument to the constructor is optional. If not an empty
25       string, it identifies the content's language, as described in section 5
26       of RFC 2231[2].
27
28       This is not the appropriate class to create structured MIME headers, or
29       address list headers. Use mail::Header::addresslist(3x) to create
30       headers that contain E-mail addresses. Use mail::Header::mime(3x) to
31       create structured MIME headers.
32
33       The toString() returns the header as a single text string: “name:
34       value”. Long headers are folded at the nearest whitespace.
35

SEE ALSO

37       mail::Header::addresslist(3x), mail::Header::list(3x),
38       mail::Header::mime(3x), mail::Header::plain(3x).
39

AUTHOR

41       Sam Varshavchik
42

NOTES

44        1. RFC 2047
45           http://www.rfc-editor.org/rfc/rfc2047.txt
46
47        2. RFC 2231
48           http://www.rfc-editor.org/rfc/rfc2231.txt
49
50
51
52Cone©                             08/25/2016          MAIL::HEADER::ENCODE(3x)
Impressum