Automatic cleanup

Is there a way to automatically delete e-mails in the trash and/or Junk folders? Maybe on exit or every x days or ???

I am sorry, but this is not currently possible. The next major version will contain Archive function, but it will just move emails older than x days to the special folder.
If you want, I can add it to our feature requests list.