3 # remove mail from PBS queue administrator from your system mailbox
5 # see man procmail, procmailrc, and procmailex
6 # there is also a good procmail tutorial at
7 # http://userpages.umbc.edu/~ian/procmail.html
9 # procmail uses sed-like regexps
11 MAILDIR=$HOME/.mailspool #$MAIL
12 LOGFILE=$MAILDIR/mailfilter/qcleanmail.log
15 PBS_ADM=adm@abax[.]physics[.]drexel[.]edu
17 # trash anything from satifying ALL of
18 # From adm@abax.physics.drexel.edu,
19 # Envelope-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
26 * ^Subject: PBS JOB [0-9]*$HOST
27 /dev/null # write matching messages to /dev/null