merge SVN commit 994322 by tmcguire:
Crossport r993474 by tmcguire from trunk to the enterprise4 branch:
Prevent an infinite recursion when entering a new folder with at least one message.
Fixes kolab/issue3727
svn path=/tags/kdepim/enterprise4.0.20090626.987619/kdepim/; revision=994368