--- parser3/src/classes/mail.C 2001/06/28 07:41:59 1.30 +++ parser3/src/classes/mail.C 2001/07/18 10:06:04 1.33 @@ -5,9 +5,9 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mail.C,v 1.30 2001/06/28 07:41:59 parser Exp $ + $Id: mail.C,v 1.33 2001/07/18 10:06:04 parser Exp $ */ -static char *RCSId="$Id: mail.C,v 1.30 2001/06/28 07:41:59 parser Exp $"; +static const char *RCSId="$Id: mail.C,v 1.33 2001/07/18 10:06:04 parser Exp $"; #include "pa_config_includes.h" @@ -120,7 +120,9 @@ static void uuencode(String& result, con "end\n"; } -/// ^mail:send[$attach[$type[uue|mime64] $value[DATA]]] +/** ^mail:send[$attach[$type[uue|mime64] $value[DATA]]] + @todo solve - bad with html attaches +*/ static const String& attach_hash_to_string(Request& r, const String& origin_string, Hash& attach_hash) { Pool& pool=r.pool(); @@ -418,7 +420,7 @@ static void sendmail(Request& r, const S static void _send(Request& r, const String& method_name, MethodParams *params) { Pool& pool=r.pool(); - Value& vhash=params->get_no_junction(0, "message must not be code"); + Value& vhash=params->as_no_junction(0, "message must not be code"); Hash *hash=vhash.get_hash(); if(!hash) PTHROW(0, 0,