root/swish_website/etc/procmailrc

Revision 1893, 1.0 kB (checked in by moseley, 2 years ago)

Updates for automatic processing -- daily builds, etc.

Line 
1 #  ===== Debugging Settings ========
2
3     # Set log file location
4     LOGFILE=$HOME/procmail.log
5
6     # Set on for debug -- Extended diags
7     # Options: VERBOSE=off|on
8     VERBOSE=off
9
10
11     # Writes From_ and Subject, deliver folder, and length if on
12     # Options: LOGABSTRACT=all|no
13     LOGABSTRACT=all
14
15 SHELL=/bin/sh
16 FILENUM=`/bin/date -u +%Y%m`
17 HYPERMAIL=/usr/local/bin/hypermail
18 ARCHIVE_DIR=$HOME/swish_website/hypermail
19
20 :0
21 * ^TOusers@lists.swish-e.org
22 {
23         # Save the archived mbox message
24         :0wc:
25         | gzip -c >> $HOME/mbox/swish_$FILENUM.gz
26
27
28         # chdir to the hypermail directory so hypermail can find the templates
29         MAILDIR=$ARCHIVE_DIR
30
31         # update the hypermail archive
32         # This probably should be done with cron, not when the mail comes in.
33         :0wc
34         | $HYPERMAIL -i -u -c hypermailrc -d $HOME/archive
35
36         # Set flag that it needs to be indexed
37         :0ih
38         | touch $HOME/time_to_index
39 }
40
41 # catch other mail
42
43 :0
44 ! moseley@hank.org
45
46
Note: See TracBrowser for help on using the browser.