diff options
author | pixel <pixel> | 2007-10-15 13:47:12 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-10-15 13:47:12 +0000 |
commit | 9c5c95217a11a36525ac25b546579fff1eace660 (patch) | |
tree | 26eb464fb3dd39dd5561d280f8ae82933697c239 /lib/LuaTask.cc | |
parent | 6ac96734fe74dd8b64535a10780e052dc9f77ce7 (diff) |
Various fixes for the MailClient.
Diffstat (limited to 'lib/LuaTask.cc')
-rw-r--r-- | lib/LuaTask.cc | 24 |
1 files changed, 12 insertions, 12 deletions
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 <LuaTask.h> #include <LuaHandle.h> @@ -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; |