Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

Address Struct Reference

Address class as defined by RFC822. More...

#include <address.h>

Inheritance diagram for Address:

FieldValue List of all members.

Public Member Functions

 Address (const char *)
 Address (const std::string &)
bool isGroup () const
Mailboxmailbox ()
const Mailboxmailbox () const
Groupgroup ()
const Groupgroup () const
void set (const std::string &)
std::string str () const
bool operator== (const Address &) const
bool operator!= (const Address &) const

Detailed Description

Address class as defined by RFC822.

Address class is a C++ representation of RFC822 address structure. Use this class to parse fields that contains email addresses or email group.

    Rfc822::Address adr(msg.from());
    if(adr.isGroup())
        cout << *adr.group();
    else
        cout << *adr.mailbox();

See also:
RFC822


The documentation for this struct was generated from the following file: