/home/bradarant/barant/BMAMail/__SMTP_MAIL.h
Go to the documentation of this file.
#ifndef ____SMTP_MAIL_h__
# define ____SMTP_MAIL_h__
# include "SMTPCommand.h"
# include "SMTPSession.h"
namespace mail {
class __SMTP_MAIL : public SMTPCommand {
int processCommand(coreutils::PString request, SMTPSession &session, std::stringstream &data) {
session.sender = request[1].str();
if(session.authState = USER_KNOWN) {
data << "250 OK" << CRLF;
session.recipientList.clear();
session.state = MAIL;
} else if(verifyDomainMX(domainOnly(session.sender))) {
data << "250 OK" << CRLF;
session.recipientList.clear();
session.state = MAIL;
}
}
};
}
#endif
mail::SMTPSession::state
State state
Definition: SMTPSession.h:25
SMTPSession.h
mail::MAIL
Definition: SMTPSession.h:11
mail::SMTPSession::authState
AuthState authState
Definition: SMTPSession.h:26
mail::__SMTP_MAIL
Definition: __SMTP_MAIL.h:9
mail::SMTPSession::recipientList
std::vector< std::string > recipientList
Definition: SMTPSession.h:30
mail
Definition: __IMAP_APPEND.h:7
SMTPCommand.h
mail::SMTPSession::sender
std::string sender
Definition: SMTPSession.h:29
mail::SMTPCommand
Definition: SMTPCommand.h:9
CRLF
#define CRLF
Definition: SMTPSession.h:7
mail::SMTPSession
Definition: SMTPSession.h:15
mail::USER_KNOWN
Definition: SMTPSession.h:12