E-mail account with lot of e-mails synchronizes slowly over IMAP
Xyster77 Mon, 03/21/2016 - 14:46
Hi,
as I wrote almost year ago in topic for old version of SimpleMail, E-mail account with lot of e-mails synchronizes slowly over IMAP.
This was present in the old version and is still present in version 2.86.8.
I have two e-mail accounts:
1. Gmail account where I use IMAP to access e-mail in Simple Mail. On that account I have almost 2000 e-mails remotely on Gmail server. Refresh of that e-mail account in Simple Mail takes very long, like 15 minutes, and during that time Firefox responds slowly. I have a feeling that Simple Mail each time downloads all those e-mails to compare if it already has them locally downloaded. Before the update of Simple Mail plugin this refresh took also 1-2 seconds, and if new e-mails were present they were downloaded by Simple Mail
2. Gmail account where I use IMAP to access e-mail in Simple Mail. On that account I usually have only few e-mails, since I also connect periodically with my other mail client that pulls the e-mails locally and doesn't leave them remotely on Gmail server. Refresh on that e-mail account in Simple Mail happens very quickly, maybe 1-2 seconds.
If I get many mails, and I don't download them locally with another e-mail client so they are no longer on Gmail servers, refresh in Simple Mail will also take longer and longer as number of mail grows, although I already have downloaded all those e-mails with Simple Mail.
Then if I download locally with another e-mail client all those e-mails, so they are no longer present on Gmail server and I try to refresh in Simple Mail refresh will again be done in 1-2 seconds.
I found a solution to this problem.
The solution was to modify overlay.js by removing the folowing piece of code from getMail function:
if (account.pop3.isImap) {
var messages = technalxs.simplemail.SimpleMailOverlay.storage.getAccountMessages(account.id);
var flag = "";
var folder = "inbox";
technalxs.simplemail.SimpleMailOverlay.SynchroMail(account, messages, folder, flag);
}
Now there's no more problem of long synchronization when a lot of e-mails are present on IMAP server.
as I wrote almost year ago in topic for old version of SimpleMail, E-mail account with lot of e-mails synchronizes slowly over IMAP.
This was present in the old version and is still present in version 2.86.8.
I have two e-mail accounts:
1. Gmail account where I use IMAP to access e-mail in Simple Mail. On that account I have almost 2000 e-mails remotely on Gmail server. Refresh of that e-mail account in Simple Mail takes very long, like 15 minutes, and during that time Firefox responds slowly. I have a feeling that Simple Mail each time downloads all those e-mails to compare if it already has them locally downloaded. Before the update of Simple Mail plugin this refresh took also 1-2 seconds, and if new e-mails were present they were downloaded by Simple Mail
2. Gmail account where I use IMAP to access e-mail in Simple Mail. On that account I usually have only few e-mails, since I also connect periodically with my other mail client that pulls the e-mails locally and doesn't leave them remotely on Gmail server. Refresh on that e-mail account in Simple Mail happens very quickly, maybe 1-2 seconds.
If I get many mails, and I don't download them locally with another e-mail client so they are no longer on Gmail servers, refresh in Simple Mail will also take longer and longer as number of mail grows, although I already have downloaded all those e-mails with Simple Mail.
Then if I download locally with another e-mail client all those e-mails, so they are no longer present on Gmail server and I try to refresh in Simple Mail refresh will again be done in 1-2 seconds.
I found a solution to this problem.
The solution was to modify overlay.js by removing the folowing piece of code from getMail function:
if (account.pop3.isImap) {
var messages = technalxs.simplemail.SimpleMailOverlay.storage.getAccountMessages(account.id);
var flag = "";
var folder = "inbox";
technalxs.simplemail.SimpleMailOverlay.SynchroMail(account, messages, folder, flag);
}
Now there's no more problem of long synchronization when a lot of e-mails are present on IMAP server.
Re: E-mail account with lot of e-mails
Submitted by userok on Tue, 03/22/2016 - 00:10I'll check it. Are you sure that this patch does not break anything else?
Re: E-mail account with lot of e-mails
Submitted by Xyster77 on Tue, 03/22/2016 - 02:09I've been using SimpleMail like this for the last year, always with latest version of Firefox, and didn't notice any problems.
Of course, it's possible that problem might occur in some functionality I don't use, so for sure I would advise some basic testing and analysis of impacts to rest of functionality.
BR,
Xyster77
Re: E-mail account with lot of e-mails
Submitted by userok on Mon, 04/18/2016 - 08:16