contentEncodingFromString

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

contentEncodingFromString
(
string str
)

Parameters

str string

a string representing a Content-Transfer-Encoding value

Return Value

Type: gmime.types.ContentEncoding

the #GMimeContentEncoding specified by str or #GMIME_CONTENT_ENCODING_DEFAULT on error.