More development.

This commit is contained in:
barant committed 2019-09-13 10:34:10 -07:00
1 parent caa8dd7d90
commit 50eb707f10
22 files changed
+302 -244

No files matched your search

+13 -8
View File
@@ -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";
}