This forum has been archived. All content is frozen. Please use KDE Discuss instead.

cannot delete mail from UW IMAP server using kmail/akonadi

Tags: None
(comma "," separated)
bartoszl
Registered Member
Posts
3
Karma
0
OS
Hi,

Since I have upgraded from kmail 1.13.7 to 4.8.2, I cannot delete mail from UW IMAP server. Messages are copied to the trash folder and removed from the message list, but after some time, when the folder refreshes, all deleted messages get refetched from the server. This looks like the messages have not been correctly deleted from the server using IMAP protocol. Messages marked as read get back marked as new while the folder refreshes.

I have observed the same problems with kmail 4.8.1, 4.8.0 and 4.7.x. Akonadi version is 1.7.2. The IMAP server is UW (University of Washington) imapd version 2007e. On another machine I use kmail version 1.13.7 and mail deletions on UW imapd are durable.

All versions of kmail correctly delete mail from dovecot IMAP server v. 2.0.16 and zimbra IMAP. Thus, as far as I know, only the combination of kmail 4.[78].*, akonadi and UW imapd does not delete mail.

How can I further debug this combination of software?

--
Bartosz Lis
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Do you have any information in the logs, or in .xsession-errors?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
bartoszl
Registered Member
Posts
3
Karma
0
OS
Hi,
When I delete mail I'm getting in my ~/.xsession-errors:

Code: Select all
"/usr/bin/kmail(4664)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
kmail2(4664)/nepomuk (library) {anonymous}::GlobalModelContainer::init: Connecting to local socket "/home/users/bartoszl/tmp/ksocket-bartoszl/nepomuk-socket"
"/usr/bin/kmail(4664)" Soprano: "QLocalSocket::connectToServer: Invalid name"
kmail2(4664)/nepomuk (library) {anonymous}::GlobalModelContainer::init: Failed to connect to Nepomuk server via local socket "/home/users/bartoszl/tmp/ksocket-bartoszl/nepomuk-socket"
"/usr/bin/kmail(4664)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kmail(4664)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kmail(4664)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/kmail(4664)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kmail(4664)" Soprano: "Invalid iterator."
kmail2(4664) MessageList::Core::View::slotSelectionChanged: View message selecte" ] "Some subject
kmail2(4664) KMReaderWin::setMessage: void KMReaderWin::setMessage(const Akonadi::Item&, MessageViewer::Viewer::UpdateMode) QSplitter(0x22b32b0, name = "splitter2")
kmail2(4664)/kdewebkit KWebPage::acceptNavigationRequest: url:  QUrl( "file:///" )  , type: 5 , frame: QWebFrame(0x26acb90)
Could not contact query service.
QStringList Akonadi::NepomukSearch::search(const QString&) Calling blockingQuery() failed!
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: Fetch missing:  2280  But:  2279
151070 +FLAGS (\Deleted)
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemsTask::triggerExpunge: "mail/saved-messages"
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: All fine, asking for all message flags looking for changes
posting retrieval request for item 227821  there are  1  queues and  0  items in mine
request for item 227821 still pending - waiting
processing retrieval request for item 227821  parts: ("ENVELOPE")  of resource: "akonadi_imap_resource_14"
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemsTask::triggerExpunge: "mail/szablony"
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: No messages present so we are done
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect?
akonadi_imap_resource_14(4712) ImapIdleManager::reconnect: attempting to reconnect IDLE session
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::SessionThread::sslConnected: TLS negotiation done.
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJob::handleResponse: Capabilities updated:  ("IMAP4REV1", "I18NLEVEL=1", "LITERAL+", "IDLE", "UIDPLUS", "NAMESPACE", "CHILDREN", "MAILBOX-REFERRALS", "BINARY", "UNSELECT", "ESEARCH", "WITHIN", "SCAN", "SORT", "THREAD=REFERENCES", "THREAD=ORDEREDSUBJECT", "MULTIAPPEND", "SASL-IR", "LOGIN-REFERRALS", "AUTH=PLAIN", "AUTH=LOGIN")
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: sasl_interact
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_INTERACT id: 16385
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_CB_[USER|AUTHNAME]: ' "bartoszl" '
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_INTERACT id: 16386
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_CB_[USER|AUTHNAME]: ' "bartoszl" '
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_INTERACT id: 16388
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) KIMAP::LoginJobPrivate::sasl_interact: SASL_CB_PASS: [hidden]
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemTask::onMessagesReceived: MESSAGE from Imap server "151077"
akonadi_imap_resource_14(4712)/kdepimlibs (kimap) RetrieveItemTask::onMessagesReceived: Has Payload:  true
continuing
request for item 227821 succeeded


Logs of the IMAP server look trivial:
Code: Select all
May 14 13:02:38 my-mail-server imapd[24666]: Killed (lost mailbox lock) user=bartoszl host=my.desktop.host [X.X.X.X]
May 14 13:02:38 my-mail-server imapd[24667]: imap service init from X.X.X.X
May 14 13:02:38 my-mail-server imapd[24667]: Authenticated user=bartoszl host=my.desktop.host [X.X.X.X] mech=PLAIN
Chaser
Registered Member
Posts
6
Karma
0
OS
I have a same problem.

When I tried run KMail from konsole:
Code: Select all
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kmail2(31923)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail2(31923)/kdepimlibs (mailtransport): Could not access Outbox.

When I tried delete message:
Code: Select all
kmail2(31923) showJobError: There is no GUI delegate set for a kjob, and it failed with error: "Неизвестная ошибка. (No collection found)"


Logs in ~/.xsession-errors after starting kmail
Code: Select all
Known subscriber "kmail2" subscribes again
Known subscriber "kmail2" subscribes again
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 8
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x1e3f260)
Known subscriber "kmail2" subscribes again
Known subscriber "kmail2" subscribes again
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 9
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x1e83f70)
akonadi_imap_resource_2(3691)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_imap_resource_1(3690)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_imap_resource_0(3689)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Database "chaser_akonadi" opened using driver "QMYSQL"
Database "chaser_akonadi" opened using driver "QMYSQL"
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 10
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x1e8dfa0)
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 11
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x1f26150)
void Nepomuk::Query::QueryServiceClient::close()


Logs in ~/.xsession-errors after delete message
Code: Select all
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 9
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x1df29c0)
void Nepomuk::Query::QueryServiceClient::close()
void Nepomuk::Query::QueryServiceClient::close()
void Nepomuk::Query::QueryServiceClient::close()
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Is your trash folder located on the IMAP server?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bartoszl
Registered Member
Posts
3
Karma
0
OS
No, my trash folder was a local folder. Deleted mail was copied to this folder, but not deleted from IMAP server.

After bcooksley's post I made a test. I did set up IMAP folder as a trash folder, then I deleted mail from the IMAP INBOX foler . After "deletion" the mail was copied to the IMAP trash folder and for a moment disapeared from INBOX. After a while INBOX was refetched and "deleted" mail reappeared. However, I had its copy in IMAP trash folder.

Deleting mail, when the trash folder was local behaved in the same way.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I've checked with a developer, and deleting from a IMAP folder into a local Trash folder should work perfectly (and does so for them).
Unfortunately we are out of ideas here. Only thing I can think of is trying to reproduce this behaviour under a new user.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]