close needs to be after flush
use logger not uid specific log files to work under multiple uids
permit a conf file to specify a regex to skip scanning
make logging more consistent
o handle SIGPIPE .. otherwise large messages (say image attachments) will fail if the open2() pipe'd process dies
o implement $verbose mode, settable via conf
o move 'use ' and such into 'if ($scan)' as it is not needed otherwise
permit scan to be turned off in the conf