Fix link from Abax post to the new NFS root description.
[blog.git] / posts / Abax / pbs_queues / file / qcleanmail.proc
1 # qcleanmail.proc
2 #
3 # remove mail from PBS queue administrator from your system mailbox
4 #
5 # see man procmail, procmailrc, and procmailex
6 # there is also a good procmail tutorial at
7 # http://userpages.umbc.edu/~ian/procmail.html
8 #
9 # procmail uses sed-like regexps
10
11 MAILDIR=$HOME/.mailspool   #$MAIL
12 LOGFILE=$MAILDIR/mailfilter/qcleanmail.log
13 SHELL=/bin/bash
14 HOST=`hostname -f`
15 PBS_ADM=adm@abax[.]physics[.]drexel[.]edu
16
17 # trash anything from satifying ALL of 
18 # From adm@abax.physics.drexel.edu,
19 # Envelope-to: $USER@$HOST
20 # To: $USER@$HOST
21 # Subject: PBS JOB [0-9]*.$HOST
22 # lock the mail file while the processing is being carried out
23 :0:                                     # the last colon means use a lockfile
24 * ^From $PBS_ADM
25 * ^To: $USER@$HOST
26 * ^Subject: PBS JOB [0-9]*$HOST
27 /dev/null                               # write matching messages to /dev/null