Bug 337669 - The gmail resource does not delete emails remotely which leads to a full resync of the mailbox
Summary: The gmail resource does not delete emails remotely which leads to a full resy...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Gmail resource (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-21 14:43 UTC by Raymond Wooninck
Modified: 2017-01-07 21:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Wooninck 2014-07-21 14:43:15 UTC
I have some folders in which I just get a notification that a task needs to be done. Afterwards I directly delete that email. Doing the same with the new GMAIL resource, leads to unexpected results/issues. 

I select the email to be deleted and press the Del-key. Nothing happens and the email is still there. Restarting KMail resolves this issue as that the email is now gone. However this results in a different issue as that the gmail resource detects an inconsistency between local and remote as that it never succeeded to delete the email remotely. The resource is now performing a full resync which has as a consequence that the deleted email appears again. 

The output log from akonadictl is:
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RemoveItemsTask::doStart: Deleting  1  messages from  "[Gmail]/All Mail"
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) KIMAP::StoreJob::doStart: "526671 +FLAGS (\Deleted)"
akonadi_baloo_indexer(3708) EmailIndexer::process: Indexing Request 241747 requires review (submit openSUSE:Factory/virt-viewer)
SEARCH: 
        Query: "{ "limit" : -1, "negated" : false, "rel" : 1, "subTerms" : [ { "cond" : 0, "key" : "email", "negated" : false, "value" : "dimstar@opensuse.org" } ] }" 
        MimeTypes: ("text/directory") 
        Collections: QVector() 
        Remote: false 
        Recursive true 
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::startRetrievalTasks: Starting retrieval for  "[Gmail]/Trash"
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: Starting message retrieval. Elapsed(ms):  2917
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: MessageCount:  0 Local message count:  0
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: UidNext:  453536 Local UidNext:  453536
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: HighestModSeq:  23670344 Local HighestModSeq:  23670189
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: No messages present so we are done
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::taskComplete: Applying collection changes
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::taskComplete: Retrieval complete. Elapsed(ms):  2917
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveCollectionMetadataTask::doStart: "/[Gmail]/Trash"
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::startRetrievalTasks: Starting retrieval for  "[Gmail]/Trash"
SEARCH: 
        Query: "{ "limit" : -1, "negated" : false, "rel" : 1, "subTerms" : [ { "cond" : 0, "key" : "email", "negated" : false, "value" : "factory-auto@kulow.org" } ] }" 
        MimeTypes: ("text/directory") 
        Collections: QVector() 
        Remote: false 
        Recursive true 
SEARCH: 
        Query: "{ "limit" : -1, "negated" : false, "rel" : 1, "subTerms" : [ { "cond" : 0, "key" : "email", "negated" : false, "value" : "factory-auto@kulow.org" } ] }" 
        MimeTypes: ("text/directory") 
        Collections: QVector() 
        Remote: false 
        Recursive true 
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: Starting message retrieval. Elapsed(ms):  4807
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: MessageCount:  0 Local message count:  0
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: UidNext:  453536 Local UidNext:  453536
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: HighestModSeq:  23670344 Local HighestModSeq:  23670189
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: No messages present so we are done
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::taskComplete: Applying collection changes
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::taskComplete: Retrieval complete. Elapsed(ms):  4807
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveCollectionMetadataTask::doStart: "/[Gmail]/Trash"
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::startRetrievalTasks: Starting retrieval for  "[Gmail]/All Mail"
Tag context: -1 
Collection context:  9 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_t9vPMD" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_6U6npl" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_3v84xN" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_HKqV7j" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_duOK1t" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_h97LjM" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_WHB4xt" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_HtIXWt" now serving: () 
void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_3765_2kcwXX" now serving: () 
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: Starting message retrieval. Elapsed(ms):  6815
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: MessageCount:  4475 Local message count:  4474
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: UidNext:  526709 Local UidNext:  526709
akonadi_gmail_resource_10(3710)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: HighestModSeq:  23670344 Local HighestModSeq:  23670344
akonadi_gmail_resource_10(3710) RetrieveItemsTask::onFinalSelectDone: Detected inconsistency in local cache, we're missing some messages. Server:  4475  Local:  4474 
akonadi_gmail_resource_10(3710) RetrieveItemsTask::onFinalSelectDone: Refetching complete mailbox. 
a
Comment 1 Denis Kurz 2016-09-24 20:31:11 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 21:33:17 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.