Import KDE4.3.1 from wip
[pkgsrc.git] / misc / kdepim4 / patches / patch-ah
1 $NetBSD$
2
3 KDE svn 1022963 and 1022964
4
5 --- kmail/kmfoldercachedimap.cpp.orig   2009-05-28 07:54:17.000000000 +1200
6 +++ kmail/kmfoldercachedimap.cpp
7 @@ -527,6 +527,11 @@ KMMessage *KMFolderCachedImap::take( int
8    return KMFolderMaildir::take( idx );
9  }
10  
11 +void KMFolderCachedImap::takeTemporarily( int idx )
12 +{
13 +  KMFolderMaildir::take( idx );
14 +}
15 +
16  int KMFolderCachedImap::addMsgInternal( KMMessage *msg, bool newMail, int *index_return )
17  {
18    // Possible optimization: Only dirty if not filtered below
19 @@ -1673,6 +1678,11 @@ bool KMFolderCachedImap::deleteMessages(
20      job->start();
21      return true;
22    } else {
23 +
24 +    // Nothing to delete on the server, make sure the map is clear again.
25 +    // Normally this wouldn't be necessary, but there can be stale maps because of
26 +    // https://issues.kolab.org/issue3833.
27 +    mDeletedUIDsSinceLastSync.clear();
28      return false;
29    }
30  }