Bug 1618662
| Summary: | Evolution takes ages retrieving IMAP messages before I can do anything | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Louis van Dyk <louis> | ||||||||||||
| Component: | evolution | Assignee: | Milan Crha <mcrha> | ||||||||||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||
| Priority: | unspecified | ||||||||||||||
| Version: | 28 | CC: | alexl, caillon+fedoraproject, lucilanga, mcrha, rhughes, rstrode, sandmann | ||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Target Release: | --- | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||
| Clone Of: | Environment: | ||||||||||||||
| Last Closed: | 2018-08-22 09:10:16 UTC | Type: | Bug | ||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||
| Documentation: | --- | CRM: | |||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
| Embargoed: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Louis van Dyk
2018-08-17 09:10:01 UTC
Thanks for a bug report. It it's IMAP, then open the account Properties and in Receiving Options change the number of concurrent connections, where the default is like 3, which means up to three connections can be made to your (local) IMAP server/service, which allows some parallelism. I'm afraid the long delay is on the server/service side, evolution just waiting for the response, but I can be wrong. Try to run evolution from the command line as this: $ CAMEL_DEBUG=imapx:io evolution and then watch what it does when it is stuck on the message download. Preferably do that before changing the concurrent connections, because I'd like to have this in the original state. If it is related to message filtering, like moving it to the correct folder, then the upcoming 3.30 has an improvement in the message filtering when it comes to move to some other folder, which speeds the moves significantly. Back to your issue: if you have installed also evolution-data-server-debuginfo package, of the same version as the evolution-data-server package, then you can see what evolution does (ideally also with evolution-debuginfo installed), when you run this gdb command: $ gdb --batch --ex "t a a bt" -pid=`pidof evolution` &>bt.txt Please check the bt.txt for any private information, like passwords, email address, server addresses,... I usually search for "pass" at least (quotes for clarity only), before sharing it anywhere. This might shed a bit of light on it. Interestingly, I had already set the number of connections to 5 some time back. I have left it like that. Attached will be the backtrace, a copy of the console when running it - I ran it twice - you will see the separations with a number of carriage returns, and a few screen shots. The one line of weird characters was when I tried to scroll back with the mouse wheel when it was stuck downloading. I've also given you a screenshot of what I see in the first time (opened, clicked on search folders and then on Inbox again), and in the second time (I only tried to open a message). The message waited until all the retrieves were done before it showed any message text. What DID strike me as interesting was that as I was looking at the messages it was stalling on, it seems that each time I open Evolution, it gets stuck on many of the same numbers each time. Created attachment 1477384 [details]
Backtrace
Created attachment 1477386 [details]
Output from starting from the command line
Created attachment 1477387 [details]
Image after inbox-searchfolder-inbox
Created attachment 1477388 [details]
Image top output
Created attachment 1477389 [details]
Image after inbox and open another message
Thanks for the update. I see your IMAP folder has more than half million of messages, which is impressive and it looks like there is no problem with the IMAP as such. The backtrace shows that the refresh of the search folder is ongoing, it is opening each message to check the expression:
(and
(match-all (header-starts-with "" " "))
)
And it's that "header-starts-with", which requires the message to be loaded. Imagine evolution loading each of those half million messages due to it, whenever a refresh of the search folder is invoked.
What is that search folder is supposed to do, please? Basic "Match All" condition simply selects every message in the folder, without a need to load it into the memory.
(In reply to Milan Crha from comment #8) > I see your IMAP folder has more than half million of messages, ... Oops, no, it's a UID, not a sequence number. The Inbox has 96410 messages, not half of the million. Still, it's plenty of messages to be loaded into the memory. :) Thank you!! The header is to get rid of some SPAM I get. Senders that start their name with a space are always SPAM and I get them enough to be a nuisance, and hence the rule. It only needs to do that on inbound messages though ... On looking at it, I recognise that I should have made that SPECIFIC header = From, and not ANY header. I will fix that and test again. I later placed a Message Filter on all incoming mail like that (using specific header) and so I actually no longer need this particular search folder as it's now expected to always be empty. On the topic of SPAM, I have Spamassassin installed and have linked the Milter to Comodo Antivirus for Linux. Yet, I still get too much of it. Do you know of a good guide for Spamassassin - I suspect my installation attempt may be flawed. I keep dumping stuff into Evolution's Junk folder, and hoping that Spamassassin checks it out ... (In reply to Louis van Dyk from comment #10) > On the topic of SPAM, I have Spamassassin installed and have linked the > Milter to Comodo Antivirus for Linux. Yet, I still get too much of it. Do > you know of a good guide for Spamassassin - I suspect my installation > attempt may be flawed. I keep dumping stuff into Evolution's Junk folder, > and hoping that Spamassassin checks it out ... See https://help.gnome.org/users/evolution/stable/mail-spam.html.en Some users claim spamassassin is better for servers, and sometimes also used by the servers, thus they use Bogofilter on the local machine instead. You should install evolution-spamassassin (or evolution-bogofilter) in order to train it when you mark messages as Junk or Not Junk. With those installed you'll see appropriate options in the Edit->Preferences->Mail Preferences->Junk tab, at the bottom, "Junk filtering software" option, or the specific options for the one junk filter plugin you've installed/selected. I'm closing this bug report for now, but feel free to update it. I can reopen it when needed. Thanks. |