first of all: filtering is completely and utterly broken. You have to delete all filters whenever you add a new 'ressource' and even then they don't work most of the time. They might work if you select all mails and click 'apply filters' - or not. Bugs on b.k.o are open.
Second, to import your old mails you have to add the right 'ressources'. And then pray. Oh and never delete any akonadi databases - I did it because someone wrote it would solve some problems - and lost 150 000 emails. So much joy. And now a little rant: I do not know who shat into the brains of the kdepim devs that they fucked up kmail in this unbelievable broken way. Most people do not need akonadi - or nepomuk. Everything worked GREAT. Now most shit only works half way, a lot of crap doesn't work at all - and once in a while (in my experience every 4h of runtime) Nepomuk, that utter waste of electrons starts to eat cpu-cores. But you need it! Because without it you can't search your emails! GRRRRRR -- #163933