utilsQuoteString

Quotes string as needed according to the rules in rfc2822.

string
utilsQuoteString
(
string str
)

Parameters

str string

input string

Return Value

Type: string

an allocated string containing the escaped and quoted (if needed to be) input string. The decision to quote the string is based on whether or not the input string contains any 'specials' as defined by rfc2822.