Bug 319238 - mail cannot be moved or deleted
Summary: mail cannot be moved or deleted
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.10
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-02 19:20 UTC by Martin Steigerwald
Modified: 2017-01-07 22:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
exported filterrules (15.88 KB, text/plain)
2013-05-02 19:33 UTC, Martin Steigerwald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2013-05-02 19:20:22 UTC
This seems to be an issue with mail filtering and/or maildir resource.

After trying without my CRM114 filter rules (see bug #319226) I still get mail cannot be moved popups occasionaly, but this time without creating one-byte files. I have a reproducable case after latest POP3 download, where everytime I get this popup with the same mail file. And well, it seems to be duplicated, but with different size!

Reproducible: Sometimes

Steps to Reproduce:
I have no idea how this situation came about.

Actual Results:  
On clicking on inbox I get a notification that file cannot be moved without any hint as to why.

Well its existing twice in my maildir:

martin@merkaba:~/.local/share/local-mail> find -name "1367521350.R666.merkaba" 
./.Lichtvoll.directory/.Debian.directory/devel-changes-ml/new/1367521350.R666.merkaba
./Lichtvoll/new/1367521350.R666.merkaba
martin@merkaba:~/.local/share/local-mail> ls -l ./Lichtvoll/new/1367521350.R666.merkaba
-rw-r--r-- 1 martin martin 6142 Mai  2 21:02 ./Lichtvoll/new/1367521350.R666.merkaba
martin@merkaba:~/.local/share/local-mail> ls -l ./.Lichtvoll.directory/.Debian.directory/devel-changes-ml/new/1367521350.R666.merkaba
-rw-r--r-- 1 martin martin 6563 Mai  2 21:02 ./.Lichtvoll.directory/.Debian.directory/devel-changes-ml/new/1367521350.R666.merkaba

But with differing size.

And it isn´t the same mail:

martin@merkaba:~/.local/share/local-mail> grep -i "^Message-Id:" ./.Lichtvoll.directory/.Debian.directory/devel-changes-ml/new/1367521350.R666.merkaba ./Lichtvoll/new/1367521350.R666.merkaba
./.Lichtvoll.directory/.Debian.directory/devel-changes-ml/new/1367521350.R666.merkaba:Message-Id: <E1UXyal-0005z8-G4@franck.debian.org>
./Lichtvoll/new/1367521350.R666.merkaba:Message-Id: <E1UXybF-0006Ge-0L@franck.debian.org>


The filename clash might not be an issue, cause its in a different maildir, but still…

Expected Results:  
… the mail should be able to be moved to its destination.

At least these mail move errors do not seem to produce data loss, so it might really be the piping through CRM114 spam filter that causes the other bug mentioned at the beginning.

This is KDEPIM 4.10.2, Akonadi 1.9.1 and MySQL 5.5.

On restart of KMail same message comes up and still find reports same result.

How can I move the mail? Shall I try to use "mv" and let Akonadi maildir resource pick up the change?
Comment 1 Martin Steigerwald 2013-05-02 19:33:29 UTC
Created attachment 79644 [details]
exported filterrules

I omitted three Sender: related filter rules for non-public mailinglists. Aside from using Sender: its the same at the other List-Id: related ones.
Comment 2 Martin Steigerwald 2013-05-02 19:43:15 UTC
I moved on of the mails out of the way for now to get rid of the popup each time I click on inbox:

martin@merkaba:~/.local/share/local-mail> mv ./Lichtvoll/new/1367521350.R666.merkaba "/home/martin/KDE/Bugs/319238 mail cannot be moved"
martin@merkaba:~/.local/share/local-mail>

Please advice on what to do with it. According to heads its also about to be filtered to debian-devel-changes:

martin@merkaba:~/KDE/Bugs/319238 mail cannot be moved> grep "^List-Id:" 1367521350.R666.merkaba
List-Id: <debian-devel-changes.lists.debian.org>
Comment 3 Martin Steigerwald 2013-05-02 21:14:20 UTC
Happened again.

martin@merkaba:~/.local/share/local-mail> find -name "1367528470.R572.merkaba" -ls                                                
1523442    8 -rw-r--r--   1 martin   martin       5563 Mai  2 23:01 ./.Lichtvoll.directory/.Computer.directory/mesa-dev-ml/new/1367528470.R572.merkaba
1523452    4 -rw-r--r--   1 martin   martin       4041 Mai  2 23:01 ./Lichtvoll/new/1367528470.R572.merkaba

martin@merkaba:~/.local/share/local-mail> date
Do 2. Mai 23:04:36 CEST 2013

martin@merkaba:~/.local/share/local-mail> mv ./Lichtvoll/new/1367528470.R572.merkaba "/home/martin/KDE/Bugs/319238 mail cannot be moved"

martin@merkaba:~/KDE/Bugs/319238 mail cannot be moved> grep List-Id 1367528470.R572.merkaba 
List-Id: "For discussion about development of the Mesa code."


Now I stopped Akonadi as it appeared to be idle in process list and rebooted the machine.

Maybe its just a temporary inconsistency.  At least I tried POP3 retrieval twice after reboot and it didn´t happen again. But still, its does not make easy to trust my mails to KMail 2 + Akonadi.
Comment 4 Martin Steigerwald 2014-03-07 13:16:58 UTC
With KDE SC 4.12.0 and Akonadi 1.11.0 I still see that mails cannot be moved during filtering operations. Due to bug #319226 I do not use local CRM114 spam filtering yet, thus let all mails flow into a special "_Posteingang" ("_incoming") folder, delete the spams manuelly, and then press Ctrl-A, Ctrl-J to select all mails and trigger filtering those.
Comment 5 Martin Steigerwald 2014-03-07 13:17:52 UTC
I also see this on some attempts to delete mails with the delete key. I get a notice that Akonadi can´t do it and thats it.

On a second attempt a while later it usually works.
Comment 6 Denis Kurz 2016-09-24 20:30:59 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 7 Denis Kurz 2017-01-07 22:06:31 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.