Summary: | KMail don't set changes of mailstatus back to mailheader (Status:/X-Status:) | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Danny Kukawka <danny.kukawka> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Danny Kukawka
2006-08-29 21:41:10 UTC
We decided against updating the *Status headers because it's very expensive (it requires rewriting of all messages with changed status headers; think Mark All Messages as Read) compared to just updating the flags in the index file. So this explains observation no. 1. A possible solution would be to make KMail update the *Status headers during folder compactification. Observation no. 2 is interesting because moving a maildir message locally should be a simply 'mv oldlocation newlocation' and thus don't change the moved messages at all. At most, the maildir flags (i.e. those appended to the file name) could be updated. Observation no. 3 seems to be a bug. It seems that the index file isn't written properly. Do I understand correctly that you exit Kontact and then start KMail? Please file a separate bug report for this last problem because it seems to be a real bug while the other two problems are unrelated. > A possible solution would be to make KMail update the *Status headers during > folder compactification. This sounds for me like a acceptable compromise between correct flags and performance. At least X-Status should be updated (Not shure what the Status flag is for atm). > Observation no. 2 is interesting because ... This was what I could observe while experience with read the status while import. > Observation no. 3 seems to be a bug. ... Yes looks like a bug, but no, my fault, I closed Kontact and reopend Kontact. Btw. I open a new bug for this problem. The Status flag is the standard well-defined header for keeping the message status, but it only supports a very limited set of flags. Therefore X-Status was introduced which supports more flags than Status. But X-Status is still limited which is why Mozilla adds new X-Mozilla-Status* headers. And we will probably have to do something similar because our flags also do not all map to Status + X-Status. Or maybe we should first check whether we can use the X-Mozilla-Status* headers. OTOH, the latter is probably not a good idea unless Mozilla officially specifies the headers. Thank you for taking the time to file a bug report. KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2. We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback. |