Summary: | moved mails reappearing in sent mail folder | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Dr. Christoph Pospiech <Christoph.Pospiech> |
Component: | folders | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amantia, Christoph.Pospiech, montel, silver.salonen |
Priority: | NOR | ||
Version: | 1.99.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Dr. Christoph Pospiech
2012-01-27 18:42:55 UTC
imap ? (trash is in an imap account) ? you move how ? (in composer editor you select a specific folder ? ) Thanks for asking. I don't use imap. Hence trash is local. I move mails by dragging them with them mouse from the folder contents list (kmail2 sub window in the top right) for sent-mail and dropping them onto one folder in the kmail2 sub window in the lower left. When I do this, a window pops up asking me whether to copy or to move and I click on "move". At this moment I see the number of mails in the sent-mail basket decremented by one and the number of mails in the target folder incremented by one - as expected. Only after sending another mail, when doing this again, the moved mails reappear when opening the sent-mail folder. In my case it happens with Inbox - I've waited long enough for KMail to start etc (otherwise it hanged too much to use it anyway), but when I click "Move to trash" button, message is grayed out for some seconds and then it'd normal again, not having been moved. Hmm, interesting. Some time after (next sync maybe) the messages disappeared from Inbox, so I guess actually they were moved, but message list was not updated properly? BTW, I use IMAP account. Hi I just posted a question about the correct akonadi configuration in http://forum.kde.org/viewtopic.php?f=215&t=99000 . Could it be that this bug is related with this question ? Christoph Pospiech I just noted that kmail2 is currently not showing a mail in the sent-mail folder, but there is a mail in /home/cp/.local/share/.local-mail.directory/sent-mail/cur/ . Having seen that, I sent another mail (subject test-mail, content test). kmail2 first showed 1 mail in sent-mail folder, /home/cp/.local/share/.local-mail.directory/sent-mail/cur/ contained two files. Then I opened the sent-mail folder and it still displayed only the new test mail. Only after closing and restarting kmail, both mails were shown in kmail2. Perhaps that sheds some light on how the mails reappear. Christoph Pospiech What is your local folder type? Check with "akonadiconsole" app, Agents tab, click on the account and in the details look at "Type". Hi, it appears that my Local Folder structure is almost empty (just inbox, trash, outbox, sent-mail and such, no stored mails). So my akonadi set up looks corrupted. See https://bugs.kde.org/show_bug.cgi?id=290589 for details. Christoph Pospiech Hi, apparently, I solved the problem. For some reason (yet unknown) the sub directories in local-mail got lost. I could be that I myself deleted them early after migration. Then kmail2 apparently stores everything in cache as it cannnot store it in local-mail. Moving a message from sent-mail elsewhere was not possible, als the folder actually dod not exist. Perhaps that is why it reappeared in sent-mail. I wrote a perl script with DBI::mysql API that extracts the local-mail directory structure from the aconadi data base and recreates it. It also reads the emails in akonadi cache (aka data field in parttable from database akonadi) and moves the emails to their proper place in local-mail. After running the script, I re-created the akonadi data base. kmail2 now runs smoothly and sent-mails don't re-appear again. I just reran the steps outlined in the error description. Christoph Pospiech |