1        ConeĀ©
2
3MAIL::HEADER::LIST(3x)  Cone: COnsole Newsreader And E  MAIL::HEADER::LIST(3x)
4
5
6

NAME

8       mail::Header::list - Create a list of headers.
9

SYNOPSIS

11       #include <libmail/headers.H>
12
13       mail::Header::list headers;
14
15           headers << mail::Header::encoded("Subject", "Hello", "iso-8859-1")
16                   << mail::header::addresslist("To")
17                                               ("John", "john@example.com")
18                                               ("Tom", "tom@example.com")
19                   << mail::Header::mime("Content-Type", "text/plain")
20                                        ("charset", "iso-8859-1");
21
22       std::cout << (std::string)headers;
23
24

USAGE

26       This is a helper class for formatting a list of headers. Each header is
27       specified, using the << operator, which can take any combination of
28       mail::Header::addresslist(3x), mail::Header::encoded(3x),
29       mail::Header::mime(3x), or mail::Header::plain(3x).
30
31           Note
32           The << operator makes an internal copy of the header object. The
33           original object may be destroyed after the operator returns.
34
35       The std::string operator formats all headers, and returns the set of
36       E-mail headers as a single string. Long headers are folded accordingly.
37

SEE ALSO

39       mail::Header::addresslist(3x), mail::Header::encoded(3x),
40       mail::Header::mime(3x), mail::Header::plain(3x).
41

AUTHOR

43       Sam Varshavchik
44
45
46
47ConeĀ©                             08/25/2016            MAIL::HEADER::LIST(3x)
Impressum