chiark / gitweb /
Add procmail files for various archiving, of which we only use save-approved
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 14:23:42 +0000 (15:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 14:23:42 +0000 (15:23 +0100)
stump/etc/procmail/save-approved [new file with mode: 0644]
stump/etc/procmail/save-incoming [new file with mode: 0644]
stump/etc/procmail/save-rejected [new file with mode: 0644]
stump/etc/procmail/template [new file with mode: 0644]

diff --git a/stump/etc/procmail/save-approved b/stump/etc/procmail/save-approved
new file mode 100644 (file)
index 0000000..2accbf1
--- /dev/null
@@ -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 (file)
index 0000000..b8c3223
--- /dev/null
@@ -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 (file)
index 0000000..d4556cc
--- /dev/null
@@ -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 (file)
index 0000000..f8ce80d
--- /dev/null
@@ -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