Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32e6ab6c authored by Nihar Thakkar's avatar Nihar Thakkar Committed by Sumit Pundir
Browse files

Delete emails on the email server when deleted locally

parent cbe1bf21
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -171,8 +171,6 @@ public class Account implements BaseAccount, StoreConfig {
    public static final boolean DEFAULT_SORT_ASCENDING = false;
    public static final long NO_OPENPGP_KEY = 0;

    private DeletePolicy deletePolicy = DeletePolicy.NEVER;

    private final String accountUuid;
    private String storeUri;

@@ -435,7 +433,7 @@ public class Account implements BaseAccount, StoreConfig {
        notifySelfNewMail = storage.getBoolean(accountUuid + ".notifySelfNewMail", true);
        notifyContactsMailOnly = storage.getBoolean(accountUuid + ".notifyContactsMailOnly", false);
        notifySync = storage.getBoolean(accountUuid + ".notifyMailCheck", false);
        deletePolicy =  DeletePolicy.fromInt(storage.getInt(accountUuid + ".deletePolicy", DeletePolicy.NEVER.setting));
        deletePolicy =  DeletePolicy.fromInt(storage.getInt(accountUuid + ".deletePolicy", DeletePolicy.ON_DELETE.setting));
        inboxFolderName = storage.getString(accountUuid + ".inboxFolderName", INBOX);
        draftsFolderName = storage.getString(accountUuid + ".draftsFolderName", "Drafts");
        sentFolderName = storage.getString(accountUuid + ".sentFolderName", "Sent");
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ class AccountConfigImpl implements AccountConfig, Parcelable {
    private int automaticCheckIntervalMinutes = 5;
    private Account.FolderMode folderPushMode = FolderMode.FIRST_CLASS;

    private DeletePolicy deletePolicy = DeletePolicy.NEVER;
    private DeletePolicy deletePolicy = DeletePolicy.ON_DELETE;

    private Preferences preferences;

+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ public class AccountSettings {
                new V(1, new BooleanSetting(Account.DEFAULT_QUOTED_TEXT_SHOWN))
        ));
        s.put("deletePolicy", Settings.versions(
                new V(1, new DeletePolicySetting(DeletePolicy.NEVER))
                new V(1, new DeletePolicySetting(DeletePolicy.ON_DELETE))
        ));
        s.put("displayCount", Settings.versions(
                new V(1, new IntegerResourceSetting(K9.DEFAULT_VISIBLE_LIMIT,