quotePlainText static method
Quotes the given plain text header and text.
Implementation
static String quotePlainText(final String header, final String? text) {
if (text == null) {
return '>\r\n';
}
final quotedHeader = header.split('\r\n').join('\r\n>');
final quotedText = text.split('\r\n').join('\r\n>');
return '>$quotedHeader\r\n>$quotedText';
}