Add support for patch files

This commit is contained in:
Edward Shen 2022-01-11 20:42:30 -08:00
parent 2ebde58c86
commit a17f4d94e4
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -76,7 +76,7 @@ pub fn decrypt(
log!(format!("Blob conversion completed in {}ms", now() - start));
if mime_type.starts_with("text/") {
if mime_type.starts_with("text/") || mime_type == "application/mbox" {
if let Ok(string) = String::from_utf8(container) {
Ok(DecryptedData::String(Arc::new(string)))
} else {