def rfc822_escape(header):
 lines = header.split('\n')
 sep = ('\n' + (8 * ' '))
 return sep.join(lines)

def rfc822_escape ( header ) : lines = header . split ( '\n' ) sep = ( '\n' + ( 8 * ' ' ) ) return sep . join ( lines )
return a version of the string escaped for inclusion in an rfc-822 header .