based on reworked servercore.
This commit is contained in:
1 parent
50eb707f10
commit
db3e82a18e
1698 files changed
+41157
-797
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#ifndef __IMAPCommand_h__
|
||||
# define __IMAPCommand_h__
|
||||
|
||||
# include "Command.h"
|
||||
# include "TCPSession.h"
|
||||
# include "IMAPSession.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class IMAPCommand : public core::Command {
|
||||
|
||||
public:
|
||||
virtual int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override {
|
||||
coreutils::PString parser(request);
|
||||
return processCommand(parser, (IMAPSession &)*session, data);
|
||||
}
|
||||
|
||||
virtual int processCommand(coreutils::PString request, IMAPSession &session, std::stringstream &data) {}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user