E-MailRelay
|
A message store. More...
#include <gpopstore.h>
Classes | |
struct | Config |
Configuration structure for GPop::Store. More... | |
Public Member Functions | |
Store (const G::Path &spool_dir, const Config &) | |
Constructor. Throws InvalidDirectory. More... | |
void | prepare (const std::string &user) |
Prepares the store for the newly-authenticated user. More... | |
G::Path | dir () const |
Returns the spool directory path. More... | |
bool | allowDelete () const |
Returns true if files can be deleted. More... | |
bool | byName () const |
Returns true if the spool directory is affected by the user name. More... | |
Store (const Store &)=delete | |
Store (Store &&)=delete | |
Store & | operator= (const Store &)=delete |
Store & | operator= (Store &&)=delete |
A message store.
Unlike the SMTP message store the POP message store allows content files to be in the envelope file's parent directory.
Definition at line 46 of file gpopstore.h.
Constructor. Throws InvalidDirectory.
Definition at line 64 of file gpopstore.cpp.
bool GPop::Store::allowDelete | ( | ) | const |
Returns true if files can be deleted.
Definition at line 143 of file gpopstore.cpp.
bool GPop::Store::byName | ( | ) | const |
Returns true if the spool directory is affected by the user name.
Definition at line 148 of file gpopstore.cpp.
G::Path GPop::Store::dir | ( | ) | const |
Returns the spool directory path.
Definition at line 138 of file gpopstore.cpp.
void GPop::Store::prepare | ( | const std::string & | user | ) |
Prepares the store for the newly-authenticated user.
Creates a pop-by-name sub-directory if necessary.
Definition at line 90 of file gpopstore.cpp.