#include <SMTPUtils.h>
Definition at line 48 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. |
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 47 of file SMTPUtils.cc.