Added option to download plain text only part by default

This commit is contained in:
M66B
2022-02-14 20:18:03 +01:00
parent 632a3912bf
commit 82ac131e39
8 changed files with 57 additions and 15 deletions

View File

@@ -2782,6 +2782,15 @@ public class MessageHelper {
return protected_subject;
}
Integer isPlainOnly(boolean download_plain) {
Integer plain = isPlainOnly();
if (plain == null)
return null;
if (download_plain && plain == 0x80)
plain |= 1;
return plain;
}
Integer isPlainOnly() {
int html = 0;
int plain = 0;