Backport of commit:
Backport of commit:

CVS commit by tilladam:

Iterate over all accounts when checking whether a folder is a trash folder. That not only also finds dimap folders, but it makes it possible to have a folder be a trash folder of a different account, not the one the folder belongs to.

  M +7 -4      kmkernel.cpp   1.299

svn path=/branches/KDE_3_3_BRANCH/kdepim/; revision=338626

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