/home/bradarant/barant/BMAMail/SMTPService.h
Go to the documentation of this file.
#ifndef __SMTPService_h__
# define __SMTPService_h__
# include <string>
# include "TCPServer.h"
# include "IPAddress.h"
# include "MailFileSystem.h"
# include "__SMTP_AUTH.h"
# include "__SMTP_DATA.h"
# include "__SMTP_EHLO.h"
# include "__SMTP_HELO.h"
# include "__SMTP_MAIL.h"
# include "__SMTP_NOOP.h"
# include "__SMTP_QUIT.h"
# include "__SMTP_RCPT.h"
# include "__SMTP_RSET.h"
# include "__SMTP_VRFY.h"
namespace mail {
class SMTPService : public core::TCPServer {
public:
SMTPService(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
: TCPServer(epoll, ipAddress), mailFileSystem(mailPath), hostName(hostName) {
commands.add(_smtp_auth, "AUTH");
commands.add(_smtp_data, "DATA");
commands.add(_smtp_ehlo, "EHLO");
commands.add(_smtp_helo, "HELO");
commands.add(_smtp_mail, "MAIL");
commands.add(_smtp_noop, "NOOP");
commands.add(_smtp_quit, "QUIT");
commands.add(_smtp_rcpt, "RCPT");
commands.add(_smtp_rset, "RSET");
commands.add(_smtp_vrfy, "VRFY");
}
MailFileSystem mailFileSystem;
std::string hostName;
private:
__SMTP_AUTH _smtp_auth;
__SMTP_DATA _smtp_data;
__SMTP_EHLO _smtp_ehlo;
__SMTP_HELO _smtp_helo;
__SMTP_MAIL _smtp_mail;
__SMTP_NOOP _smtp_noop;
__SMTP_QUIT _smtp_quit;
__SMTP_RCPT _smtp_rcpt;
__SMTP_RSET _smtp_rset;
__SMTP_VRFY _smtp_vrfy;
};
}
#endif
mail::MailFileSystem
Definition: MailFileSystem.h:10
__SMTP_QUIT.h
mail::__SMTP_QUIT
Definition: __SMTP_QUIT.h:8
__SMTP_RCPT.h
mail::__SMTP_AUTH
Definition: __SMTP_AUTH.h:10
__SMTP_DATA.h
mail::__SMTP_MAIL
Definition: __SMTP_MAIL.h:9
mail::__SMTP_RSET
Definition: __SMTP_RSET.h:8
mail::SMTPService::hostName
std::string hostName
Definition: SMTPService.h:39
mail
Definition: __IMAP_APPEND.h:7
mail::__SMTP_HELO
Definition: __SMTP_HELO.h:9
__SMTP_VRFY.h
__SMTP_NOOP.h
__SMTP_RSET.h
__SMTP_HELO.h
MailFileSystem.h
mail::__SMTP_EHLO
Definition: __SMTP_EHLO.h:8
__SMTP_AUTH.h
mail::__SMTP_VRFY
Definition: __SMTP_VRFY.h:9
mail::SMTPService
Definition: SMTPService.h:21
mail::SMTPService::SMTPService
SMTPService(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
Definition: SMTPService.h:24
mail::__SMTP_DATA
Definition: __SMTP_DATA.h:8
mail::SMTPService::mailFileSystem
MailFileSystem mailFileSystem
Definition: SMTPService.h:38
__SMTP_EHLO.h
mail::__SMTP_RCPT
Definition: __SMTP_RCPT.h:10
mail::__SMTP_NOOP
Definition: __SMTP_NOOP.h:10
__SMTP_MAIL.h