Empty directories left in /tmp

So I’m running RT 3.0.2 on Solaris 2.8, with all of the recommended CPAN
modules, Apache 1.3.27, and fastcgi instead of mod_perl.

I’ve observed empty directories owned by the webserver user accumulating
in /tmp. They seem to correspond to messages processed by the mail
gateway. The directories have 10-character names of random alphanumeric
characters. It looks like these temporary directories are created by
the MIME module.

Has anyone got a fix for this, or noticed the same problem? It
seems worthwhile checking Before I dive into all that perl…

Meanwhile, a cron job to run the command:
find /tmp/* -prune -type d -links 2 -name ‘[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]’ -mtime +1 -exec rmdir ‘{}’ ;
cures the symptom.

-- Larry