Function deltachat::mimefactory::wrapped_base64_encode
source · pub(crate) fn wrapped_base64_encode(buf: &[u8]) -> String
Expand description
Returns base64-encoded buffer buf
split into 76-bytes long
chunks separated by CRLF.
RFC2045 specification of base64 Content-Transfer-Encoding
says that “The encoded output stream must be represented in lines of no more than 76 characters each.”
Longer lines trigger BASE64_LENGTH_78_79
rule of SpamAssassin.