I agree with Noth that this is not really a good idea... I think it will come back to haunt you later, unless you are 100% error-free as a human being
However, if you are dead set on it, you could create a fairly simple python script and set cron to run it. Just run through the mailbox and delete everything past a certain date. This would work well for a single user, or perhaps a handful of users, but not for a larger group (more maintenance when you add or remove mailboxes).