From d903e40a53d7519d0b6c037fb80696900ff7e66b Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sat, 3 Jul 2021 00:52:49 -0400 Subject: [PATCH] Fix weird behavior with legacy mails (#4307) --- .../essentials/config/serializers/MailMessageSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/config/serializers/MailMessageSerializer.java b/Essentials/src/main/java/com/earth2me/essentials/config/serializers/MailMessageSerializer.java index 45aec4235..4bce9867c 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/config/serializers/MailMessageSerializer.java +++ b/Essentials/src/main/java/com/earth2me/essentials/config/serializers/MailMessageSerializer.java @@ -13,7 +13,7 @@ import java.util.UUID; public class MailMessageSerializer implements TypeSerializer { @Override public MailMessage deserialize(Type type, ConfigurationNode node) throws SerializationException { - final boolean legacy = !node.node("legacy").isNull() && node.node("legacy").getBoolean(false); + final boolean legacy = node.node("legacy").getBoolean(true); return new MailMessage(node.node("read").getBoolean(false), legacy,