automatically empty trash

Is it possible to set up a rule to automatically empty the trash folder once a month or all emails in the trash folder that are older than one month? For instance, can this be done with Procmail filters or via a cronjob?