contentEncodingFromString

fngmime.types.ContentEncoding contentEncodingFromString(string str)

Gets the appropriate #GMimeContentEncoding enumeration value based on the input string.

Parameters

stra string representing a Content-Transfer-Encoding value

Returns

the #GMimeContentEncoding specified by str or

#GMIME_CONTENT_ENCODING_DEFAULT on error.