Compilable SMTP
This commit is contained in:
1 parent
6c844983d9
commit
e1f33291f7
70 files changed
+308
-362
No files matched your search
+7
-11
@@ -1,23 +1,19 @@
|
||||
#include "__SMTP_EHLO.h"
|
||||
#include "SMTPSession.h"
|
||||
|
||||
#define CRLF "\r\n"
|
||||
#include "SMTPServer.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
int __SMTP_EHLO::processCommand(coreutils::ZString &request, core::TCPSession &session) {
|
||||
int __SMTP_EHLO::processCommand(coreutils::ZString &request, SMTPSession &session, SMTPServer &server) {
|
||||
|
||||
SMTPSession &s = dynamic_cast<SMTPSession &>(session);
|
||||
|
||||
s.clientDomainName = request[1].str();
|
||||
session.clientDomainName = request[1].str();
|
||||
|
||||
s.out << "250-" << server.hostName << CRLF;
|
||||
session.out << "250-" << server.hostName << CRLF;
|
||||
// cout << "250-STARTTLS" << CRLF;
|
||||
// cout << "250-PIPELINING" << CRLF;
|
||||
// cout << "250-8BITMIME" << CRLF;
|
||||
s.out << "250-AUTH LOGIN" << CRLF;
|
||||
s.out << "250 HELP" << CRLF;
|
||||
s.state = READY;
|
||||
session.out << "250-AUTH LOGIN" << CRLF;
|
||||
session.out << "250 HELP" << CRLF;
|
||||
session.state = READY;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user