Hugo Monteiro wrote:

> That's pretty easy to do, but i'm finding the RFC a bit confusing. Could 
> you help to clarify EXACTLY what codes/code ranges should be translated?
> This may sound lazy of me, but i haven't gotten much sleep in the last 
> days (weeks?)

This is a function from Roundcube code (PHP):

function quote_string($str, $dn=false)
   {
     // DN escaping
     if ($dn)
       $replace = array(','=>'\2c', '='=>'\3d', '+'=>'\2b', '<'=>'\3c',
         '>'=>'\3e', ';'=>'\3b', '\\'=>'\5c', '"'=>'\22', '#'=>'\23');
     // other
     else
       $replace = array('*'=>'\2a', '('=>'\28', ')'=>'\29', '\\'=>'\5c',
         '/'=>'\2f');

     return strtr($str, $replace);
   }

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to