49 Filter::Type ,
const Filter::Config & ,
const std::string & spec ) ;
62 std::string id()
const override ;
63 bool quiet()
const override ;
66 void cancel()
override ;
67 Result result()
const override ;
68 std::string response()
const override ;
69 int responseCode()
const override ;
70 std::string reason()
const override ;
71 bool special()
const override ;
76 GStore::FileStore::State storestate()
const ;
77 std::string prefix()
const ;
79 static std::vector<GNet::Address> mxnameservers(
const std::string & spec ) ;
80 static std::string parseForwardToDomain(
const std::string & ) ;
81 static unsigned int parseForwardToPort(
const std::string & ) ;
82 static std::pair<std::string,unsigned int> parseForwardTo(
const std::string & ) ;
88 Filter::Type m_filter_type ;
89 Filter::Config m_filter_config ;
96 std::unique_ptr<MxLookup> m_lookup ;
A concrete GSmtp::Filter class for message routing: if the message's 'forward-to' field is set then t...
~MxFilter() override
Destructor.
MxFilter(GNet::ExceptionSink es, GStore::FileStore &, Filter::Type, const Filter::Config &, const std::string &spec)
Constructor.
A tuple containing an ExceptionHandler interface pointer and a bound 'exception source' pointer.
A timer class template in which the timeout is delivered to the specified method.
An interface for processing a message file through a filter.
A concrete implementation of the MessageStore interface dealing in paired flat files.
A somewhat opaque identifer for a GStore::MessageStore message id.
A configuration structure for GFilters::MxLookup.
Low-level file-system operations for GStore::FileStore.