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
-24
@@ -1,30 +1,20 @@
|
||||
#ifndef ____SMTP_EHLO_h__
|
||||
#define ____SMTP_EHLO_h__
|
||||
# define ____SMTP_EHLO_h__
|
||||
|
||||
#include "Command.h"
|
||||
# include "SMTPCommand.h"
|
||||
# include "SMTPSession.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class __SMTP_EHLO : public core::Command {
|
||||
|
||||
class SMTPServer;
|
||||
|
||||
class __SMTP_EHLO : 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);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
if(input.length() > 5) {
|
||||
string hostName = input.substr(5);
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
// TODO: Provide error message demanding identity here.
|
||||
//
|
||||
}
|
||||
|
||||
data << "250-" << getHostName() << CRLF;
|
||||
// cout << "250-STARTTLS" << CRLF;
|
||||
// cout << "250-PIPELINING" << CRLF;
|
||||
// cout << "250-8BITMIME" << CRLF;
|
||||
data << "250-AUTH LOGIN" << CRLF;
|
||||
data << "250 HELP" << CRLF;
|
||||
session->state = "READY";
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user