oasys::SMTPUtils Class Reference

#include <SMTPUtils.h>

List of all members.


Detailed Description

Wrapper class for email-related utility functions.

Definition at line 27 of file SMTPUtils.h.


Static Public Member Functions

static bool extract_address (const std::string &str, std::string *address)
 Parse the given address, stripping out whitespace and potentially the real user name, returning only the address part.

Member Function Documentation

bool oasys::SMTPUtils::extract_address ( const std::string &  str,
std::string *  address 
) [static]

Parse the given address, stripping out whitespace and potentially the real user name, returning only the address part.

Example inputs, all of which would return "demmer@cs.berkeley.edu" are:

Michael Demmer <demmer@cs.berkeley.edu> <demmer@cs.berkeley.edu> [demmer@cs.berkeley.edu]

Definition at line 26 of file SMTPUtils.cc.

References ASSERT, oasys::Regex::get_match(), log_debug_p, oasys::Regex::match(), oasys::Regex::num_matches(), and oasys::Regex::regerror_str().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:26 2007 for DTN Reference Implementation by  doxygen 1.5.3