SHELL=/bin/sh TESTDIR=/home/test MAILDIR=/var/spool/mail LOGFILE=${TESTDIR}/proctest.log LOG="--- Logging for ${LOGNAME}, " #Troubleshooting: VERBOSE=yes LOGABSTRACT=all #Truncate messages longer than 4000 bytes to 100 + 10 lines :0 * > 1350000 { :0 fwh * ^Content-Length: | formail -IContent-Length: :0c:${MAILDIR}/test.lock ${MAILDIR}/test :0 fwh * ^Subject: *\/[^ ].* | formail -I"Subject: --TRUNCATED LARGE MAIL-- Orig-Subj: $MATCH" :0c:${MAILDIR}/test.lock | /usr/bin/head -100 >> ${MAILDIR}/test :0 /dev/null }