Use a KMMoveCommand with target folder 0 for deleting (/dev/null) messages during expiry. Using removeMsg(QPtrList<KMMsgBase> which has an override in folderstorage but not in kmfolderimap results in the wrong kind of remove being done and crashes due to invalidated message pointers in the list being iterated over during online imap folder expiry jobs.
Use a KMMoveCommand with target folder 0 for deleting (/dev/null) messages
during expiry. Using removeMsg(QPtrList<KMMsgBase> which has an override
in folderstorage but not in kmfolderimap results in the wrong kind of
remove being done and crashes due to invalidated message pointers in the
list being iterated over during online imap folder expiry jobs.

svn path=/trunk/kdepim/; revision=312511

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