sync
This commit is contained in:
1 parent
37b5a5bf4e
commit
6c844983d9
27 files changed
+230
-272
No files matched your search
+12
-8
@@ -1,19 +1,23 @@
|
||||
#include "__SMTP_EHLO.h"
|
||||
#include "SMTPServer.h"
|
||||
#include "SMTPSession.h"
|
||||
|
||||
#define CRLF "\r\n"
|
||||
|
||||
namespace mail {
|
||||
|
||||
int __SMTP_EHLO::processCommand(coreutils::PString request, SMTPSession &session, SMTPServer &server, std::stringstream &data) {
|
||||
int __SMTP_EHLO::processCommand(coreutils::ZString &request, core::TCPSession &session) {
|
||||
|
||||
SMTPSession &s = dynamic_cast<SMTPSession &>(session);
|
||||
|
||||
s.clientDomainName = request[1].str();
|
||||
|
||||
session.clientDomainName = request[1].str();
|
||||
|
||||
data << "250-" << server.hostName << CRLF;
|
||||
s.out << "250-" << server.hostName << 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;
|
||||
s.out << "250-AUTH LOGIN" << CRLF;
|
||||
s.out << "250 HELP" << CRLF;
|
||||
s.state = READY;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user