Change final probability calculation to avoid double precision issues and add a small bias to avoid 100% spam probabilities.
Use the "antispam" package instead of the built-in spam filters.