mail::Header::plain.3x

Langue: en

Autres versions - même langue

Version: 11/28/2008 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

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

SYNOPSIS

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

USAGE

This class creates an unstructured E-mail header. Two arguments are provided to the constructor: the header's name, and its contents. The header contents must contain only US-ASCII characters. Use the mail::Header::encoded(3x) object to create a header containing non-US-ASCII content.

The toString() returns the header as a single text string: lqname: valuerq. Long headers are folded at the nearest whitespace.

SEE ALSO

mail::Header::addresslist(3x), mail::Header::encoded(3x), mail::Header::list(3x), mail::Header::mime(3x).