def decode_rfc2231(s):
 parts = s.split(TICK, 2)
 if (len(parts) <= 2):
  return (None, None, s)
 return parts

def decode_rfc2231 ( s ) : parts = s . split ( TICK , 2 ) if ( len ( parts ) <= 2 ) : return ( None , None , s ) return parts
decode string according to rfc 2231 .