Compilable SMTP
This commit is contained in:
1 parent
6c844983d9
commit
e1f33291f7
70 files changed
+308
-362
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#ifndef __SMTPCommand_h__
|
||||
# define __SMTPCommand_h__
|
||||
|
||||
# include "Command.h"
|
||||
# include "SMTPSession.h"
|
||||
|
||||
#define CRLF "\r\n"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class SMTPServer;
|
||||
|
||||
class SMTPCommand : public core::Command {
|
||||
|
||||
public:
|
||||
|
||||
virtual int processCommand(coreutils::ZString &request, core::TCPSession &session) override {
|
||||
return processCommand(request, (SMTPSession &)session, (SMTPServer &)session.server);
|
||||
}
|
||||
|
||||
virtual int processCommand(coreutils::ZString &request, SMTPSession &session, SMTPServer &server) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void grabInput(SMTPSession &session) {
|
||||
session.server.commands.grabInput(session, *this);
|
||||
}
|
||||
|
||||
void clearGrab(SMTPSession &session) {
|
||||
session.server.commands.clearGrab(session);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user