--- parser3/src/classes/mail.C 2001/04/10 10:32:04 1.16 +++ parser3/src/classes/mail.C 2001/04/15 13:12:17 1.18 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mail.C,v 1.16 2001/04/10 10:32:04 paf Exp $ + $Id: mail.C,v 1.18 2001/04/15 13:12:17 paf Exp $ */ #include "pa_config_includes.h" @@ -113,7 +113,7 @@ static const String& attach_hash_to_stri const VFile *vfile; if(Value *value=static_cast(attach_hash.get(*value_name))) - vfile=value->as_vfile(); + vfile=value->as_vfile(String::UL_AS_IS); // bad with html attaches. todo: solve else PTHROW(0, 0, &origin_string, @@ -370,13 +370,10 @@ static void sendmail(Request& r, const S // methods -static void _send(Request& r, const String& method_name, Array *params) { +static void _send(Request& r, const String& method_name, MethodParams *params) { Pool& pool=r.pool(); - Value& vhash=*static_cast(params->get(0)); - // forcing [this body type] - r.fail_if_junction_(true, vhash, method_name, "message must not be code"); - + Value& vhash=params->get_no_junction(0, "message must not be code"); Hash *hash=vhash.get_hash(); if(!hash) PTHROW(0, 0,