based on reworked servercore.
This commit is contained in:
1 parent
50eb707f10
commit
db3e82a18e
1698 files changed
+41157
-797
No files matched your search
+14
-26
@@ -1,32 +1,20 @@
|
||||
#ifndef ____SMTP_HELO_h__
|
||||
#define ____SMTP_HELO_h__
|
||||
# define ____SMTP_HELO_h__
|
||||
|
||||
#include "Command.h"
|
||||
# include "SMTPCommand.h"
|
||||
# include "SMTPSession.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class __SMTP_HELO : public core::Command {
|
||||
|
||||
class SMTPServer;
|
||||
|
||||
class __SMTP_HELO : public SMTPCommand {
|
||||
|
||||
int processCommand(std::string request, Session *session, std::stringstream &data);
|
||||
public:
|
||||
int processCommand(coreutils::PString request, SMTPSession &session, SMTPServer &server, std::stringstream &data);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
data << "" << std::endl;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// HELO command request handling.
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
if(command(input) == "HELO") {
|
||||
|
||||
if(input.length() > 5) {
|
||||
string hostName = input.substr(5);
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
// TODO: Provide error message demanding identity here.
|
||||
//
|
||||
}
|
||||
|
||||
cout << "250 " << getHostName() << CRLF;
|
||||
state = "READY";
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user