def quotedata(data):
 return re.sub('(?m)^\\.', '..', re.sub('(?:\\r\\n|\\n|\\r(?!\\n))', CRLF, data))

def quotedata ( data ) : return re . sub ( '(?m)^\\.' , '..' , re . sub ( '(?:\\r\\n|\\n|\\r(?!\\n))' , CRLF , data ) )
quote data for email .