21 #ifndef G_SMTP_FACTORY_PARSER_H
22 #define G_SMTP_FACTORY_PARSER_H
44 Result(
const std::string & ,
const std::string & ) ;
45 Result(
const std::string & ,
const std::string & ,
int ) ;
51 static Result parse(
const std::string & identifier ,
bool allow_spam ) ;
56 static std::string
check(
const std::string & identifier ,
bool allow_spam ) ;
SMTP and message-store classes.
Result tuple for GSmtp::FactoryParser::parse().
static std::string check(const std::string &identifier, bool allow_spam)
Parses and checks an identifier.
A simple class to parse identifiers that can be a program in the file system or a network address...
static Result parse(const std::string &identifier, bool allow_spam)
Parses an identifier like "/usr/bin/foo" or "net:127.0.0.1:99" returning the type and the specificati...