From: Ian Jackson Date: Tue, 20 Apr 2010 14:23:42 +0000 (+0100) Subject: Add procmail files for various archiving, of which we only use save-approved X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=2531a84de26038152db8db3a10ab11f766654066 Add procmail files for various archiving, of which we only use save-approved --- diff --git a/stump/etc/procmail/save-approved b/stump/etc/procmail/save-approved new file mode 100644 index 0000000..2accbf1 --- /dev/null +++ b/stump/etc/procmail/save-approved @@ -0,0 +1,14 @@ +# Please check if all the paths in PATH are reachable, remove the ones that +# are not. + +SCRM_ROOT=$HOME/live + +MAILDIR=$HOME/Mail # You'd better make sure it exists +DEFAULT=$MAILDIR/mbox + +# VERBOSE=ON +LOGFILE=$MAILDIR/approved.log +LOCKFILE=$HOME/.lockmail + +:0: +$SCRM_ROOT/archive/approved diff --git a/stump/etc/procmail/save-incoming b/stump/etc/procmail/save-incoming new file mode 100644 index 0000000..b8c3223 --- /dev/null +++ b/stump/etc/procmail/save-incoming @@ -0,0 +1,13 @@ +# Please check if all the paths in PATH are reachable, remove the ones that +# are not. + +PATH=/bin:/usr/bin:/usr/local/bin:$HOME/stump/bin +SCRM_ROOT=$HOME/stump +MAILDIR=$HOME/Mail # You'd better make sure it exists +DEFAULT=$MAILDIR/mbox +# VERBOSE=ON +LOGFILE=/dev/null # $MAILDIR/incoming.log +# LOCKFILE=$HOME/.lockmail + +:0: +$SCRM_ROOT/archive/incoming diff --git a/stump/etc/procmail/save-rejected b/stump/etc/procmail/save-rejected new file mode 100644 index 0000000..d4556cc --- /dev/null +++ b/stump/etc/procmail/save-rejected @@ -0,0 +1,21 @@ +# Please check if all the paths in PATH are reachable, remove the ones that +# are not. + +SCRM_ROOT=$HOME/live + +MAILDIR=$HOME/Mail # You'd better make sure it exists +DEFAULT=$MAILDIR/mbox + +# VERBOSE=ON +LOGFILE=/dev/null # $MAILDIR/rejected.log +LOCKFILE=$HOME/.lockmail + +:0 +{ + :0 f + | (cat; echo ===========================================================; \ + echo Reason: "$REASON: $EXPLANATION") + + :0: + $SCRM_ROOT/archive/rejected +} diff --git a/stump/etc/procmail/template b/stump/etc/procmail/template new file mode 100644 index 0000000..f8ce80d --- /dev/null +++ b/stump/etc/procmail/template @@ -0,0 +1,15 @@ +# Please check if all the paths in PATH are reachable, remove the ones that +# are not. + +PATH=/bin:/usr/bin:/usr/local/bin:$HOME/stump/bin +MAILDIR=$HOME/Mail # You'd better make sure it exists +DEFAULT=$MAILDIR/mbox +VERBOSE=ON +LOGFILE=$MAILDIR/from +LOCKFILE=$HOME/.lockmail + + + + +# Anything that has not been delivered by now will go to $DEFAULT +# using LOCKFILE=$DEFAULT$LOCKEXT