0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 04:02:14 +02:00

Update Apache James Mime4J to version 0.8.8

This commit is contained in:
cketti 2023-01-16 18:31:06 +01:00
parent d858b20f3f
commit ddd464cffb
3 changed files with 13 additions and 5 deletions

View File

@ -651,9 +651,13 @@ public class LocalStore {
if (MimeUtil.ENC_QUOTED_PRINTABLE.equals(encoding)) {
return new QuotedPrintableInputStream(rawInputStream) {
@Override
public void close() throws IOException {
public void close() {
super.close();
rawInputStream.close();
try {
rawInputStream.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
};
}

View File

@ -25,7 +25,7 @@ preferencesFix = "1.1.0"
timber = "5.0.1"
koinCore = "3.3.2"
koinAndroid = "3.3.2"
mime4j = "0.8.6"
mime4j = "0.8.8"
okhttp = "4.10.0"
glide = "4.14.2"
moshi = "1.14.0"

View File

@ -149,9 +149,13 @@ public class MimeUtility {
} else if (MimeUtil.ENC_QUOTED_PRINTABLE.equalsIgnoreCase(encoding)) {
inputStream = new QuotedPrintableInputStream(rawInputStream) {
@Override
public void close() throws IOException {
public void close() {
super.close();
closeInputStreamWithoutDeletingTemporaryFiles(rawInputStream);
try {
closeInputStreamWithoutDeletingTemporaryFiles(rawInputStream);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
};
} else {