FilterBest.this

Creates a new GMimeFilterBest filter. flags are used to determine which information to keep statistics of. If the #GMIME_FILTER_BEST_CHARSET bit is set, the filter will be able to compute the best charset for encoding the stream of data filtered. If the #GMIME_FILTER_BEST_ENCODING bit is set, the filter will be able to compute the best Content-Transfer-Encoding for use with the stream being filtered.

Note: In order for the gmime.filter_best.FilterBest.charset function to work, the stream being filtered MUST already be encoded in UTF-8.

  1. this(void* ptr, Flag!"Take" take)
  2. this(gmime.types.FilterBestFlags flags)
    class FilterBest

Parameters

flags gmime.types.FilterBestFlags

filter flags

Return Value

a new best filter with flags flags.