1MAIL::HEADER::PLAIN(3x) Cone: COnsole Newsreader And E MAIL::HEADER::PLAIN(3x)
2
3
4
6 mail::Header::plain - An unstructured, US-ASCII-only, E-mail header.
7
9 #include <libmail/headers.H>
10
11 mail::Header::plain plain_header("Content-Type", "text/plain");
12
13 std::cout << plain_header.toString();
14
15
17 This class creates an unstructured E-mail header. Two arguments are
18 provided to the constructor: the header´s name, and its contents. The
19 header contents must contain only US-ASCII characters. Use the
20 mail::Header::encoded(3x) object to create a header containing
21 non-US-ASCII content.
22
23 The toString() returns the header as a single text string: “name:
24 value”. Long headers are folded at the nearest whitespace.
25
27 mail::Header::addresslist(3x), mail::Header::encoded(3x),
28 mail::Header::list(3x), mail::Header::mime(3x).
29
30
31
32[FIXME: source] 05/08/2010 MAIL::HEADER::PLAIN(3x)