pike.git / lib / modules / MIME.pmod

version» Context lines:

pike.git/lib/modules/MIME.pmod:1:   /* -  * $Id: MIME.pmod,v 1.5 1997/05/05 12:39:09 marcus Exp $ +  * $Id: MIME.pmod,v 1.6 1997/05/05 22:33:52 marcus Exp $    *    * RFC1521 functionality for Pike    *    * Marcus Comstedt 1996-1997    */      class support {       inherit "MIME";   
pike.git/lib/modules/MIME.pmod:32:    throw(({ "unknown transfer encoding "+encoding+"\n",    backtrace() }));    }    }       string encode( string data, string encoding, void|string filename,    void|int stripcrlf )    {    switch (lower_case( encoding || "binary" )) {    case "base64": -  return (stripcrlf? encode_base64( data )-"\r\n" : encode_base64( data )); +  return encode_base64( data, stripcrlf );    case "quoted-printable": -  return (stripcrlf? encode_qp( data )-"=\r\n" : encode_qp( data )); +  return encode_qp( data, stripcrlf );    case "x-uue":    return encode_uue( data, filename );    case "7bit":    case "8bit":    case "binary":    return data;    default:    throw(({ "unknown transfer encoding "+encoding+"\n",    backtrace() }));    }