1mail::Header::plain(3x)        Creating headers        mail::Header::plain(3x)
2
3
4

NAME

6       mail::Header::plain - An unstructured, US-ASCII-only, E-mail header.
7

SYNOPSIS

9       #include <libmail/headers.H>
10
11       mail::Header::plain plain_header("Content-Type", "text/plain");
12
13       std::cout << plain_header.toString();
14

USAGE

16       This  class  creates  an unstructured E-mail header.  Two arguments are
17       provided to the constructor: the header's name, and its contents.   The
18       header   contents  must  contain  only  US-ASCII  characters.  Use  the
19       mail::Header::encoded(3x) object to create a header containing  non-US-
20       ASCII content.
21
22       The  toString()  returns  the  header  as a single text string: ``name:
23       value''.  Long headers are folded at the nearest whitespace.
24

SEE ALSO

26       mail::Header::addresslist(3x),               mail::Header::encoded(3x),
27       mail::Header::list(3x), mail::Header::mime(3x).
28
29
30
31                                 10 April 2006         mail::Header::plain(3x)
Impressum