RFC 2047 codec.
RFC 2047 codec.
This will take a bytes that are decoded as asciss string and then, this will search for the RFC2047 encoding indicator (=?), if that is found, this will start to decode the string as RFC 2047 content, psoobly separated by FWS.
However if the encoded string cannot be decoded, this will, instead of failing return the Ascii string.
When encoding, this will encode string to RFC2047 if the characters supplied cannot be encoded by plain string. If the characters encoded are exceeding the 75 characters per line, this will result in mulitple RFC2047 encoded words, separated by FWS.
Created by pach on 23/10/17.