--- parser3/src/classes/mail.C 2003/03/26 13:46:57 1.88.2.16.2.14 +++ parser3/src/classes/mail.C 2003/07/24 11:31:20 1.89 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MAIL_C="$Date: 2003/03/26 13:46:57 $"; +static const char* IDENT_MAIL_C="$Date: 2003/07/24 11:31:20 $"; #include "pa_config_includes.h" #include "pa_vmethod_frame.h" @@ -115,10 +115,11 @@ static void sendmail(Request& r, #ifdef PA_FORCED_SENDMAIL sendmail_command=new String(PA_FORCED_SENDMAIL); #else - sendmail_command=new String("/usr/sbin/sendmail"); - if(!file_executable(test)) - sendmail_command=new String("/usr/lib/sendmail"); - *sendmail_command<<" -t -i -f postmaster"; + String* test=new String("/usr/sbin/sendmail"); + if(!file_executable(*test)) + test=new String("/usr/lib/sendmail"); + *test<<" -t -i -f postmaster"; + sendmail_command=test; #endif } @@ -179,8 +180,8 @@ static void sendmail(Request& r, // methods -static void _send(Request& r, MethodParams* params) { - Value& vhash=params->as_no_junction(0, "message must not be code"); +static void _send(Request& r, MethodParams& params) { + Value& vhash=params.as_no_junction(0, "message must not be code"); HashStringValue* hash=vhash.get_hash(); if(!hash) throw Exception("parser.runtime",