Function
quopri.needsquoting

Signature

needsquoting(c, quotetabs, header)

Documentation String

Decide whether a particular character needs to be quoted.

The quotetabs flag indicates whether embedded tabs and spaces should be quoted. Note that line-ending tabs and spaces are always encoded, as per RFC 1521.