21#ifndef G_COPY_FILTER_H
22#define G_COPY_FILTER_H
43 G_EXCEPTION( Error ,
tx(
"copy filter failed to copy message files into sub-directory") )
46 Filter::Type ,
const Filter::Config & ,
const std::string & spec ) ;
50 Result run(
const GStore::MessageId & ,
bool & , GStore::FileStore::State )
override ;
55 Filter::Config m_filter_config ;
57 bool m_pop_by_name {
false} ;
58 bool m_hardlink {
false} ;
59 bool m_no_delete {
false} ;
A concrete GSmtp::Filter class that copies the message to all pre-existing sub-directories of the spo...
CopyFilter(GNet::EventState es, GStore::FileStore &, Filter::Type, const Filter::Config &, const std::string &spec)
Constructor.
A GSmtp::Filter base class for filters that run synchronously.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
A concrete implementation of the MessageStore interface dealing in paired flat files.
A somewhat opaque identifer for a GStore::MessageStore message id.
constexpr const char * tx(const char *p) noexcept
A briefer alternative to G::gettext_noop().
Low-level file-system operations for GStore::FileStore.