--- parser3/src/classes/mail.C 2003/11/04 12:29:16 1.91 +++ parser3/src/classes/mail.C 2003/11/04 12:46:49 1.92 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MAIL_C="$Date: 2003/11/04 12:29:16 $"; +static const char* IDENT_MAIL_C="$Date: 2003/11/04 12:46:49 $"; #include "pa_config_includes.h" #include "pa_vmethod_frame.h" @@ -97,7 +97,7 @@ static void sendmail(Request& r, // $MAIN:MAIL.sendmail["/usr/sbin/sendmail -t -i -f postmaster"] default // $MAIN:MAIL.sendmail["/usr/lib/sendmail -t -i -f postmaster"] default - const String* sendmail_command; + String* sendmail_command=new String; if(vmail_conf) { #ifdef PA_FORCED_SENDMAIL throw Exception("parser.runtime", @@ -106,7 +106,7 @@ static void sendmail(Request& r, " key, to change sendmail you should reconfigure and recompie it"); #else if(Value* sendmail_value=vmail_conf->get_hash()->get(mail_sendmail_name)) - sendmail_command=&sendmail_value->as_string(); + *sendmail_command<as_string(); else throw Exception("parser.runtime", 0, @@ -114,17 +114,17 @@ static void sendmail(Request& r, #endif } else { #ifdef PA_FORCED_SENDMAIL - sendmail_command=new String(PA_FORCED_SENDMAIL); + sendmail_command<pos("postmaster");