email.utils: Miscellaneous utilities

email.utils: Miscellaneous utilities

Source code: Lib/email/utils.py

There are several useful utilities provided in the email.utils module:

email.utils.quote(str)

Return a new string with backslashes in str replaced by two backslashes, and double quotes replaced by backslash-double quote.

email.utils.unquote(str)

Return a new string which is an unquoted version of str. If str ends and begins with double quot