21 #ifndef G_SMTP_EXECUTABLE_FILTER__H
22 #define G_SMTP_EXECUTABLE_FILTER__H
35 class ExecutableFilter ;
50 virtual std::string
id()
const override ;
53 virtual bool simple()
const override ;
59 virtual void start(
const std::string & path )
override ;
62 virtual void cancel()
override ;
68 virtual std::string
response()
const override ;
71 virtual std::string
reason()
const override ;
74 virtual bool special()
const override ;
80 std::pair<std::string,std::string> parseOutput( std::string ,
const std::string & )
const ;
81 virtual void onTaskDone(
int ,
const std::string & )
override ;
86 std::string m_prefix ;
89 std::string m_response ;
90 std::string m_reason ;
SMTP and message-store classes.
virtual bool simple() const override
Override from from GSmtp::Filter.
ExecutableFilter(GNet::ExceptionHandler &, bool server_side, const std::string &)
Constructor.
virtual ~ExecutableFilter()
Destructor.
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events...
An interface for processing a message file through a filter.
virtual bool abandoned() const override
Override from from GSmtp::Filter.
virtual void start(const std::string &path) override
Override from from GSmtp::Filter.
virtual bool special() const override
Override from from GSmtp::Filter.
virtual std::string id() const override
Override from from GSmtp::Filter.
A class for running an exectuable in a separate process with an asychronous completion callback...
virtual G::Slot::Signal1< int > & doneSignal() override
Override from from GSmtp::Filter.
virtual std::string reason() const override
Override from from GSmtp::Filter.
virtual void cancel() override
Override from from GSmtp::Filter.
An abstract interface for callbacks from GNet::Task.
A Path object represents a file system path.
Interprets an executable filter's exit code.
virtual std::string response() const override
Override from from GSmtp::Filter.
A Filter class that runs an external helper program.