Created
August 26, 2013 14:10
-
-
Save cdombroski/6341818 to your computer and use it in GitHub Desktop.
Full backend debugging for dovecot-antispam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmpf=/tmp/antispam.log.$$ | |
( | |
date | |
id | |
let i=0 | |
for arg; do | |
let i=1+i | |
echo "arg $i $arg" | |
done | |
cat - > $tmpf.msg | |
<backend command goes here> "$@" < $tmpf.msg | |
rc=$? | |
echo rc=$rc | |
date | |
exit $rc | |
) 2> $tmpf.err > $tmpf.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment