diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-08 11:32:57 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-08 11:32:57 -0700 |
commit | df83f96624550a23ed049ef4fe42bb2d97824db5 (patch) | |
tree | 58e555bb4531612e220b43cb8a7ef5f1bac67efa /lib | |
parent | 1dfd804a05fca48a8c86e883ed175c3802d614d9 (diff) |
Fixing a bit the reset command.
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); |