Summary: | Mark (All) Message(s) as Read etc. doesn't flag messages as on the IMAP server | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Malte Starostik <malte> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Malte Starostik
2003-07-07 16:58:30 UTC
Well, of course there is a workaround to "fix" such a mailbox. Had to write this report to think of it: Once those messages are actually fetched, the server marks them as such. Subject: kdepim/kmail CVS commit by tilladam: Make sure setStatus has the same signature in kmfolderimap as in kmfolder. That way overloading actually works. :) Thanks Malte, for noticing this one. CCMAIL: 60882-done@bugs.kde.org M +4 -5 kmfolderimap.cpp 1.116 M +2 -2 kmfolderimap.h 1.48 --- kdepim/kmail/kmfolderimap.cpp #1.115:1.116 @@ -1143,13 +1143,13 @@ void KMFolderImap::deleteMessage(QPtrLis //----------------------------------------------------------------------------- -void KMFolderImap::setStatus(int idx, KMMsgStatus status) +void KMFolderImap::setStatus(int idx, KMMsgStatus status, bool toggle) { QValueList<int> ids; ids.append(idx); - setStatus(ids, status); + setStatus(ids, status, toggle); } -void KMFolderImap::setStatus(QValueList<int>& ids, KMMsgStatus status) +void KMFolderImap::setStatus(QValueList<int>& ids, KMMsgStatus status, bool toggle) { - KMFolder::setStatus(ids, status); + KMFolder::setStatus(ids, status, toggle); if (mReadOnly) return; --- kdepim/kmail/kmfolderimap.h #1.47:1.48 @@ -156,10 +156,10 @@ public: * Overloaded function for the following one */ - virtual void setStatus(int idx, KMMsgStatus status); + virtual void setStatus(int idx, KMMsgStatus status, bool toggle); /** * Change the status of several messages indicated by @p ids */ - virtual void setStatus(QValueList<int>& ids, KMMsgStatus status); + virtual void setStatus(QValueList<int>& ids, KMMsgStatus status, bool toggle); /** Helper method to set the status on the server */ |