No longer exists

pull/214/head
M66B 1 year ago
parent ac2f4ac6a8
commit 3c8336de2f

@ -2039,8 +2039,18 @@ class Core {
// Get message // Get message
Message imessage = ifolder.getMessageByUID(message.uid); Message imessage = ifolder.getMessageByUID(message.uid);
if (imessage == null) if (imessage == null) {
throw new MessageRemovedException(); File file = message.getFile(context);
Helper.writeText(file, "");
db.message().setMessageContent(message.id,
true,
null,
null,
null,
context.getString(R.string.title_not_existing));
return;
//throw new MessageRemovedException();
}
MessageHelper helper = new MessageHelper((MimeMessage) imessage, context); MessageHelper helper = new MessageHelper((MimeMessage) imessage, context);
MessageHelper.MessageParts parts = helper.getMessageParts(); MessageHelper.MessageParts parts = helper.getMessageParts();

@ -2230,6 +2230,7 @@
<string name="title_fetching_again">Fetching message again from the server</string> <string name="title_fetching_again">Fetching message again from the server</string>
<string name="title_go_back">Go back</string> <string name="title_go_back">Go back</string>
<string name="title_global_default">Use global default</string> <string name="title_global_default">Use global default</string>
<string name="title_not_existing">This message no longer exists on the mail server</string>
<string name="title_conversation_actions">Actions</string> <string name="title_conversation_actions">Actions</string>
<string name="title_conversation_action_reply">Reply with: \'%1$s\'</string> <string name="title_conversation_action_reply">Reply with: \'%1$s\'</string>

Loading…
Cancel
Save