# ------------------------------------------------------------------- # # Nuke duplicates (pipe it to formail, which will look at the | # message ID, and will see if that ID is already in .msgids. | # If it is, lose it, if not, no worry. The 16384 is the | # approximate size of the .msgids file. | # :0 Wh: .msgids.lock | formail -D 16384 .msgids # ------------------------------------------------------------------- # This is a bunch of ways to do the rsh, none of which are | # actually _used_ :-) | # # | rsh -n sj-fte69-sun saymail 2> /dev/null # | rplay -h sj-fte69-sun message # | rsh -n sj-fte69-sun "/bin/audioplay -v 60 ~/sounds/thump.au" 2>/dev/null # | (cat >/dev/null; rsh -n sj-fte69-sun saymail; true) # | rsh -n sj-fte69-sun "/bin/audioplay -v 60 ~/audio/splat.au" 2>/dev/null # ------------------------------------------------------------------- # Rule 2, part 1: # continuation rule. announce mail, if it is to user # # :0 ci:saymail.lock # * ^TOuser@[-A-Za-z0-9.]*domain.com # | rsh -n sj-cse112-sun "/usr/demo/SOUND/play -v 110 /export/home/user/sounds/ ping.au" 2> /dev/null # ------------------------------------------------------------------- HOME=/home/user #BKP_DIR=$HOME/admin/logs/backups #INCR_BACKUP=$BKP_DIR/inc.dump/inc.`/bin/date +%Y%m%d`.gz #FULL_BACKUP=$BKP_DIR/systems #WE_BACKUP=$BKP_DIR/weekend/we.`/bin/date +%Y%m%d`.gz DOMAIN_STAT=$HOME/www/logs/domain/backups/systat.`/bin/date +%Y%m%d` ABT_STAT=$HOME/www/logs/abt/systat.`/bin/date +%Y%m%d` OTHERDOMAIN_STAT=$HOME/www/logs/otherdomain/systat.`/bin/date +%Y%m%d` #:0: #* ^From: *friend1* #{ # :0 c # forward to another account # !R.S@somedomain.com #} #:0 #* ^From: *.si #{ # :0 c # !R.S@somedomain.com #} :0: * ^Subject: Systat NEWS* | cat > $OSDNET_STAT #:0: #* ^Subject: Backup WEEKLY: all systems* # | gzip >$WE_BACKUP #:0: #* ^Subject: Backup FULL: mercury 1 # | gzip >$FULL_BACKUP/mercury/full_1.`/bin/date +%Y%m%d`.gz #:0: #* ^Subject: Backup FULL: mercury 2 # | gzip >$FULL_BACKUP/mercury/full_2.`/bin/date +%Y%m%d`.gz