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

NAME

6       mail::Header::encoded - An unstructured E-mail header.
7

SYNOPSIS

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

USAGE

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

SEE ALSO

34       mail::Header::addresslist(3x),                  mail::Header::list(3x),
35       mail::Header::mime(3x), mail::Header::plain(3x).
36
37
38
39                                 10 April 2006       mail::Header::encoded(3x)
Impressum