From ebcfeaecbe6e9e14ec0c6058f0768de09f5fb5d6 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Tue, 11 Nov 2008 18:04:57 +0000 Subject: [PATCH] Backport SVN commit 882933 by tilladam from enterprise4 branch: Make sure to reload the UID map, otherwise it's stale on the next sync and might have offsets in it that will lead to mail loss, on the next mail sync. Kolab/issue3196. svn path=/branches/kdepim/enterprise/kdepim/; revision=882936 --- kmfoldercachedimap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kmfoldercachedimap.h b/kmfoldercachedimap.h index 0d91070a9..dc34034fb 100644 --- a/kmfoldercachedimap.h +++ b/kmfoldercachedimap.h @@ -214,8 +214,11 @@ public: void setSilentUpload( bool silent ) { mSilentUpload = silent; } bool silentUpload() { return mSilentUpload; } - virtual int createIndexFromContents() - { return KMFolderMaildir::createIndexFromContents(); } + virtual int createIndexFromContents() { + const int result = KMFolderMaildir::createIndexFromContents(); + reloadUidMap(); + return result; + } int createIndexFromContentsRecursive();