spam_sanitize_filename filenameWhat it does:
Remove any pathname metachars from a filename, allow only a very clean set of charactersDefined in: /web/philip/tcl/spam-daemon.tcl
Source code:
regsub -all {[^A-aZ-z0-9._-]} $filename "_" file_clean regsub -all {[.]+} $file_clean "." file_clean_1 return $file_clean_1