From 2531a84de26038152db8db3a10ab11f766654066 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 20 Apr 2010 15:23:42 +0100 Subject: [PATCH] Add procmail files for various archiving, of which we only use save-approved --- stump/etc/procmail/save-approved | 14 ++++++++++++++ stump/etc/procmail/save-incoming | 13 +++++++++++++ stump/etc/procmail/save-rejected | 21 +++++++++++++++++++++ stump/etc/procmail/template | 15 +++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 stump/etc/procmail/save-approved create mode 100644 stump/etc/procmail/save-incoming create mode 100644 stump/etc/procmail/save-rejected create mode 100644 stump/etc/procmail/template 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 -- 2.30.2