pike.git / lib / modules / MIME.pmod

version» Context lines:

pike.git/lib/modules/MIME.pmod:1:   /* -  * $Id: MIME.pmod,v 1.4 1997/05/05 12:33:11 marcus Exp $ +  * $Id: MIME.pmod,v 1.5 1997/05/05 12:39:09 marcus Exp $    *    * RFC1521 functionality for Pike    *    * Marcus Comstedt 1996-1997    */      class support {       inherit "MIME";   
pike.git/lib/modules/MIME.pmod:34:    }    }       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 ));    case "quoted-printable": -  return (stripcrlf? encode_qp( data )-"\r\n" : encode_qp( data )); +  return (stripcrlf? encode_qp( data )-"=\r\n" : encode_qp( data ));    case "x-uue":    return encode_uue( data, filename );    case "7bit":    case "8bit":    case "binary":    return data;    default:    throw(({ "unknown transfer encoding "+encoding+"\n",    backtrace() }));    }