Bug 308184 - online imap fetches the whole inbox before displaying the message list on each kmail start
Summary: online imap fetches the whole inbox before displaying the message list on eac...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.8.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-10-10 15:11 UTC by S. Burmeister
Modified: 2018-10-27 03:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2012-10-10 15:11:39 UTC
Since KDE SC 4.9 it takes a very long time until items are shown in the online imap inbox message list. Using akonadiconsole I see that the whole inbox is checked before the first email is displayed.

The account is set to load the emails' body only on demand and keep them in the cache for 60 minutes.

Enabling/disabling filters does not change anything regarding this issue.

It seems that no cache is used since the debugger shows that for every email the headers are fetched, e.g.:

KMail Kernel ETM (0x8866888) * 119626 FETCH (UID 119626 REV 1 REMOTEID "408603" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 11552 DATETIME "10-Oct-2012 11:03:27 +0000" FLAGS () ANCESTORS ((4 "/INBOX") (2 "imap://username+provider.de@server.de/") (0 "")) PLD:ENVELOPE[1] {352} ("Wed, 10 Oct 2012 10:54:30 +0200" "Re: [opensuse] Intrusive wall from rsyslog" (("Carlos E. R." NIL "robin.listas" "telefonica.net")) NIL NIL (("oS-en" NIL "opensuse" "opensuse.org")) NIL NIL "<k537en$mk5$1@saturn.local.net>" "<507537C6.1000503@telefonica.net>" "<alpine.LNX.2.00.1210092216480.6918@Telcontar.valinor> <k537en$mk5$1@saturn.local.net>")) 

Adding to this but probably a separate issue:

If I have a look at the debug output I see a lot (>100) of 

KMail Kernel ETM (0x8866888) * 110797 FETCH (UID 110797 REV 0 REMOTEID "392165" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 0 DATETIME "20-Aug-2012 20:03:12 +0000" FLAGS (\SEEN $JUNK) ANCESTORS ((4 "/INBOX") (2 "imap://username+domain.de@server.de/") (0 ""))) 

All of these have \seen $JUNK and all of them are supposed to be part of the online imap INBOX if I understand correctly. However, if I set the message list filter to show email marked as SPAM it only shows 10 items.

Most of them have the same date shown in the debugger, i.e. either "20-Aug-2012 20:03:12 +0000"  or "26-Aug-2012 21:05:13 +0000"

Reproducible: Always
Comment 1 S. Burmeister 2012-10-10 15:31:15 UTC
For the latter issue I opened bug 308185.
Comment 2 András Manţia 2012-10-13 23:06:42 UTC
Git commit 3ba2a26ed1b6754df365c841fbfbe2bac50229e5 by Andras Mantia.
Committed on 14/10/2012 at 01:06.
Pushed by amantia into branch 'master'.

Ignore disabled filters when calculating the required part.

Please test if now disabling filters helps with initial imap sync or not.

M  +3    -0    mailcommon/filter/mailfilter.cpp

http://commits.kde.org/kdepim/3ba2a26ed1b6754df365c841fbfbe2bac50229e5
Comment 3 András Manţia 2012-10-13 23:08:55 UTC
Git commit 0ba63cd1714b8005db149bbd3f248e3ff60756a3 by Andras Mantia.
Committed on 14/10/2012 at 01:06.
Pushed by amantia into branch 'KDE/4.9'.

Ignore disabled filters when calculating the required part.

Please test if now disabling filters helps with initial imap sync or not.
(cherry picked from commit 3ba2a26ed1b6754df365c841fbfbe2bac50229e5)

M  +3    -0    mailcommon/filter/mailfilter.cpp

http://commits.kde.org/kdepim/0ba63cd1714b8005db149bbd3f248e3ff60756a3
Comment 4 Kevin Ottens 2013-11-16 07:28:07 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 5 Christian Mollekopf 2013-11-28 11:23:00 UTC
Does this still apply to >= 4.11.3?
Comment 6 Andrew Crouthamel 2018-09-25 03:40:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 03:35:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!