I use the mail application provided with MacOSX to get my emails. This is a great application. But I like to keep my emails on the POP server for a couple of weeks, in case I want to get them on another machine. And the Mail application doesn't provide a way to clean the old emails that are still on the server.
Therefore I wrote a little perl script called "nettoie_mail.pl" that does it for me. You can get it here. You can lauch that script from anywhere, but the recommended way is to copy it to /usr/local/bin (with the terminal). As this script should be lauched on a regular basis, it should be included in the /etc/crontab file or in the /etc/daily.local file. For example, my choice is crontab:
5 2,13 * * * root /usr/local/bin/nettoie_mail.plHope this helps.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020318014821958