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 ) ;
58 static std::string
check(
const std::string & identifier ,
bool allow_spam ) ;
A simple static class to parse identifiers that are either a program path 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" or "net:/run/spamd....
static std::string check(const std::string &identifier, bool allow_spam)
Parses and checks an identifier.
SMTP and message-store classes.
Result tuple for GSmtp::FactoryParser::parse().