E-MailRelay
|
A Filter class that does nothing. More...
#include <gnullfilter.h>
Public Member Functions | |
NullFilter (GNet::ExceptionSink, bool server_side) | |
Constructor. More... | |
NullFilter (GNet::ExceptionSink, bool server_side, unsigned int exit_code) | |
Constructor for a processor that behaves like an executable that always exits with the given exit code. More... | |
NullFilter (const NullFilter &)=delete | |
NullFilter (NullFilter &&)=delete | |
void | operator= (const NullFilter &)=delete |
void | operator= (NullFilter &&)=delete |
![]() | |
virtual | ~Filter ()=default |
Destructor. | |
virtual std::string | id () const =0 |
Returns the id passed to the derived-class constructor. More... | |
virtual bool | simple () const =0 |
Returns true if the concrete filter class is one that can never change the file (eg. More... | |
virtual void | start (const MessageId &)=0 |
Starts the filter for the given message. More... | |
virtual G::Slot::Signal< int > & | doneSignal ()=0 |
Returns a signal which is raised once start() has completed or failed. More... | |
virtual void | cancel ()=0 |
Aborts any incomplete filtering. | |
virtual bool | abandoned () const =0 |
Returns true if the filter result was 'abandoned'. | |
virtual std::string | response () const =0 |
Returns a non-empty response string iff the filter failed, or an empty response if successful or abandoned. | |
virtual std::string | reason () const =0 |
Returns a non-empty reason string iff the filter failed, or an empty reason if successful or abandoned. | |
virtual bool | special () const =0 |
Returns true if the filter indicated special handling is required. | |
std::string | str (bool server_side) const |
Returns a diagnostic string for logging. More... | |
Additional Inherited Members | |
![]() | |
enum class | Result { f_ok = 0 , f_abandon = 1 , f_fail = 2 } |
A Filter class that does nothing.
Definition at line 36 of file gnullfilter.h.
GSmtp::NullFilter::NullFilter | ( | GNet::ExceptionSink | es, |
bool | server_side | ||
) |
Constructor.
Definition at line 25 of file gnullfilter.cpp.
GSmtp::NullFilter::NullFilter | ( | GNet::ExceptionSink | es, |
bool | server_side, | ||
unsigned int | exit_code | ||
) |
Constructor for a processor that behaves like an executable that always exits with the given exit code.
Definition at line 32 of file gnullfilter.cpp.