From 8d1aaa08994013fd2d731bedd2e053e512eaa315 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 5 Jul 2022 09:01:28 +0200 Subject: [PATCH] Gmail POP3: leave on device https://support.google.com/mail/answer/7104828 --- app/src/main/java/eu/faircode/email/FragmentGmail.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentGmail.java b/app/src/main/java/eu/faircode/email/FragmentGmail.java index 2a8878046b..72fbcb99dd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentGmail.java +++ b/app/src/main/java/eu/faircode/email/FragmentGmail.java @@ -521,8 +521,10 @@ public class FragmentGmail extends FragmentBase { account.synchronize = true; account.primary = (primary == null); - if (pop) + if (pop) { + account.leave_on_device = true; account.max_messages = EntityAccount.DEFAULT_MAX_MESSAGES; + } account.created = new Date().getTime(); account.last_connected = account.created;