I've two deleting filters: one for the directory Spam, the other for the directory Trash.
Both should delete messages older then 60 days. Both don't work in a reliable way. Few times PM did announce while it opened, that it works-out this filters, but most of time I have to do-it manually, selecting messages older then 90 days and deleting them with the script "Delete Message Immediatly".