From 33cff51d26b6f11b1893f23a9eb0328100692fd7 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 18 Jul 2024 08:49:28 +0200 Subject: [PATCH] Web.de: Postausgang is read-only --- app/src/main/java/eu/faircode/email/Core.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 19d26ac858..447ec2fc81 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1145,6 +1145,9 @@ class Core { if (target != folder.id) throw new IllegalArgumentException("Invalid folder"); + if (account != null && account.isWebDe() && "Postausgang".equalsIgnoreCase(folder.name)) + throw new IllegalArgumentException("'Postausgang' is read-only, use 'Gesendet' instead"); + // External draft might have a uid only if (TextUtils.isEmpty(message.msgid)) { message.msgid = EntityMessage.generateMessageId();