|
|
|
@ -138,7 +138,7 @@ import javax.mail.search.SentDateTerm;
|
|
|
|
|
import me.leolin.shortcutbadger.ShortcutBadger;
|
|
|
|
|
|
|
|
|
|
class Core {
|
|
|
|
|
static final int DEFAULT_CHUNCK_SIZE = 100;
|
|
|
|
|
static final int DEFAULT_CHUNK_SIZE = 50;
|
|
|
|
|
|
|
|
|
|
private static final int MAX_NOTIFICATION_DISPLAY = 10; // per group
|
|
|
|
|
private static final int MAX_NOTIFICATION_COUNT = 100; // per group
|
|
|
|
@ -2579,7 +2579,7 @@ class Core {
|
|
|
|
|
imessage.setFlag(Flags.Flag.DELETED, true);
|
|
|
|
|
} else {
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNCK_SIZE);
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNK_SIZE);
|
|
|
|
|
|
|
|
|
|
Flags flags = new Flags(Flags.Flag.DELETED);
|
|
|
|
|
for (List<Message> list : Helper.chunkList(idelete, chunk_size))
|
|
|
|
@ -3320,7 +3320,7 @@ class Core {
|
|
|
|
|
ranges.add(new Pair<>(first, last < 0 ? first : last));
|
|
|
|
|
|
|
|
|
|
// https://datatracker.ietf.org/doc/html/rfc2683#section-3.2.1.5
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNCK_SIZE);
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNK_SIZE);
|
|
|
|
|
if (chunk_size < 200 &&
|
|
|
|
|
(account.isGmail() || account.isOutlook()))
|
|
|
|
|
chunk_size = 200;
|
|
|
|
@ -4341,7 +4341,7 @@ class Core {
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
|
|
|
|
|
boolean uid_expunge = prefs.getBoolean("uid_expunge", false);
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNCK_SIZE);
|
|
|
|
|
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNK_SIZE);
|
|
|
|
|
|
|
|
|
|
if (!perform_expunge)
|
|
|
|
|
return false;
|
|
|
|
|