diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MailServer.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/MailServer.cc b/lib/MailServer.cc index 0d80c0e..b34678e 100644 --- a/lib/MailServer.cc +++ b/lib/MailServer.cc @@ -111,7 +111,9 @@ int ProcessSMTPRequest::Do() { b << "354 Ok, go ahead.\r\n"; } else if (cmd == "RSET") { from = ""; - tos.empty(); + while (!tos.empty()) + tos.pop_back(); + b << "250 Ok.\r\n"; } else if (cmd == "NOOP") { b << "250 Zzz.\r\n"; } else if (cmd == "QUIT") { @@ -160,6 +162,9 @@ int ProcessSMTPRequest::Do() { delete out; + from = ""; + while (!tos.empty()) + tos.pop_back(); b << "250 Ok.\r\n"; c = new CopyJob(&b, &s); WaitFor(c); |