ok, this works, at least in regard to spam filtering, only halfway. although i can switch on the spam filter by setting all accounts to "true" in the "psa/mail" table, column "spamfilter" and the the mail get's filtered by spamassassin, there is the problem, that the mails found are not marked, as there needs to be added a row for each mail account in the table "psa/spamfilter_preferences" like "move" ort "subject: SPAM".
do you have an SQL query ready, which does this for all accounts?