Continued development...
This commit is contained in:
1 parent
db3e82a18e
commit
967a03563a
15 files changed
+102
-71
No files matched your search
+3
-4
@@ -24,9 +24,8 @@ namespace mail {
|
||||
class SMTPServer : public core::TCPServer, public core::INotify {
|
||||
|
||||
public:
|
||||
SMTPServer(core::EPoll &ePoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
|
||||
: core::TCPServer(ePoll, ipAddress, "SMTP Server"), core::INotify(ePoll), hostName(hostName), mailFileSystem(mailPath) {
|
||||
this->mailPath = mailPath;
|
||||
SMTPServer(core::EPoll &ePoll, std::string hostName, MailFileSystem &mailFileSystem, core::IPAddress ipAddress)
|
||||
: core::TCPServer(ePoll, ipAddress, "SMTP Server"), core::INotify(ePoll), hostName(hostName), mailFileSystem(mailFileSystem) {
|
||||
commands.add(_smtp_auth, "AUTH");
|
||||
commands.add(_smtp_data, "DATA");
|
||||
commands.add(_smtp_ehlo, "EHLO");
|
||||
@@ -41,7 +40,7 @@ namespace mail {
|
||||
wd = addWatch(mailPath + "/.queue/");
|
||||
}
|
||||
|
||||
MailFileSystem mailFileSystem;
|
||||
MailFileSystem &mailFileSystem;
|
||||
std::string hostName;
|
||||
std::string mailPath;
|
||||
|
||||
|
||||
Reference in new issue
Block a user