From 9c5c95217a11a36525ac25b546579fff1eace660 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 15 Oct 2007 13:47:12 +0000 Subject: Various fixes for the MailClient. --- lib/LuaTask.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'lib/LuaTask.cc') diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc index d25efda..f7497be 100644 --- a/lib/LuaTask.cc +++ b/lib/LuaTask.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaTask.cc,v 1.17 2007-10-12 15:18:26 pixel Exp $ */ +/* $Id: LuaTask.cc,v 1.18 2007-10-15 13:47:12 pixel Exp $ */ #include #include @@ -201,23 +201,23 @@ int LuaTask::Do() throw (GeneralException) { String smtp, subject, from, body; MailClient::strings_t headers, tos, ccs, bccs, fakes; - if (L->gettop() != 9) { - L->error("Incorrect parameters to MailClient."); + if (L->gettop() != 10) { + L->error("Incorrect number of parameters to MailClient."); return TASK_DONE; } - smtp = L->tostring(1); - subject = L->tostring(2); - from = L->tostring(3); + smtp = L->tostring(2); + subject = L->tostring(3); + from = L->tostring(4); try { - headers = array_to_vector(4); - tos = array_to_vector(5); - ccs = array_to_vector(6); - bccs = array_to_vector(7); - fakes = array_to_vector(8); + headers = array_to_vector(5); + tos = array_to_vector(6); + ccs = array_to_vector(7); + bccs = array_to_vector(8); + fakes = array_to_vector(9); } catch (GeneralException e) { L->error("Incorrect parameters to MailClient."); } - body = L->tostring(9); + body = L->tostring(10); b = new Buffer(true); (*b) << body; -- cgit v1.2.3