summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-08 11:32:57 -0700
committerPixel <pixel@nobis-crew.org>2008-10-08 11:32:57 -0700
commitdf83f96624550a23ed049ef4fe42bb2d97824db5 (patch)
tree58e555bb4531612e220b43cb8a7ef5f1bac67efa /lib
parent1dfd804a05fca48a8c86e883ed175c3802d614d9 (diff)
Fixing a bit the reset command.
Diffstat (limited to 'lib')
-rw-r--r--lib/MailServer.cc7
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);