perf(mail(js)): various optimizations

We now use IMAP QRESYNC to synchronize mailbox.
This commit is contained in:
Francis Lachapelle committed 2021-06-15 17:16:10 -04:00
1 parent b4ccafd546
commit a9c6f09273
16 files changed
+362 -172

No files matched your search

@@ -26,8 +26,10 @@
this.init(futureMessageData);
}
this.uid = parseInt(futureMessageData.uid);
this.selected = !!futureMessageData.selected;
this.level = parseInt(futureMessageData.level);
this.first = parseInt(futureMessageData.first) === 1;
this.flags = [];
if (this.first) {
this.threadCount = parseInt(futureMessageData.count);
this.collapsed = (futureMessageData.collapsed === true);
@@ -61,6 +63,8 @@
// Initialize tags form user's defaults
if (Preferences.defaults.SOGoMailLabelsColors) {
Message.$tags = Preferences.defaults.SOGoMailLabelsColors;
} else {
Message.$tags = {};
}
if (Preferences.defaults.SOGoMailDisplayRemoteInlineImages &&
Preferences.defaults.SOGoMailDisplayRemoteInlineImages == 'always') {