More development.
This commit is contained in:
1 parent
caa8dd7d90
commit
50eb707f10
22 files changed
+302
-244
No files matched your search
+13
-8
@@ -1,8 +1,13 @@
|
||||
//---------------------------------------------------------------------------
|
||||
// EHLO command request handling.
|
||||
//---------------------------------------------------------------------------
|
||||
#ifndef ____SMTP_EHLO_h__
|
||||
#define ____SMTP_EHLO_h__
|
||||
|
||||
else if(command(input) == "EHLO") {
|
||||
#include "Command.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class __SMTP_EHLO : public core::Command {
|
||||
|
||||
int processCommand(std::string request, Session *session, std::stringstream &data);
|
||||
|
||||
if(input.length() > 5) {
|
||||
string hostName = input.substr(5);
|
||||
@@ -14,12 +19,12 @@
|
||||
//
|
||||
}
|
||||
|
||||
cout << "250-" << getHostName() << CRLF;
|
||||
data << "250-" << getHostName() << CRLF;
|
||||
// cout << "250-STARTTLS" << CRLF;
|
||||
// cout << "250-PIPELINING" << CRLF;
|
||||
// cout << "250-8BITMIME" << CRLF;
|
||||
cout << "250-AUTH LOGIN" << CRLF;
|
||||
cout << "250 HELP" << CRLF;
|
||||
state = "READY";
|
||||
data << "250-AUTH LOGIN" << CRLF;
|
||||
data << "250 HELP" << CRLF;
|
||||
session->state = "READY";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user