Backport SVN commit 700851 by moenicke:
Backport SVN commit 700851 by moenicke:

* fix for kolab issue 1882 (Crash after reply to a revoked mail):
  The storage needs to be open before remove is called, otherwise
  it will not unregister the corresponding serial numbers from
  the message dict, since its message list is empty, and the .ids
  file contents are not loaded. That can lead to lookups in the
  dict returning stale pointers to the folder later.

svn path=/branches/KDE/3.5/kdepim/; revision=702345

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi