#include "__SMTP_EHLO.h"
#include "SMTPServer.h"

namespace mail {

   int __SMTP_EHLO::processCommand(coreutils::ZString &request, SMTPSession &session, SMTPServer &server) {

      session.clientDomainName = request[1];
//      std::cout << "{" << session.clientDomainName << "}" << std::endl;
      session.out << "250-" << server.hostName << CRLF;
      //  cout << "250-STARTTLS" << CRLF;
      //  cout << "250-PIPELINING" << CRLF;
      //  cout << "250-8BITMIME" << CRLF;
      session.out << "250-AUTH LOGIN" << CRLF;
      session.out << "250 HELP" << CRLF;
      session.state = READY;
      return 1;
   }

}
