| 1 |
# Please check if all the paths in PATH are reachable, remove the ones that |
| 2 |
# are not. |
| 3 |
|
| 4 |
PATH=$HOME/bin:/usr/bin:/global/bin:/usr/ucb:/bin:/usr/local/bin: |
| 5 |
MAILDIR = $HOME/Mail # You'd better make sure it exists |
| 6 |
DEFAULT = $MAILDIR/mbox |
| 7 |
LOGFILE = $MAILDIR/from |
| 8 |
LOCKFILE= $HOME/.lockmail |
| 9 |
|
| 10 |
# This will create a local lockfile named todd.lock |
| 11 |
:0: # *if* the condition matches |
| 12 |
* ^From.*thf |
| 13 |
todd |
| 14 |
|
| 15 |
LOCKFILE=$MAILDIR/whatever # This will remove the global lockfile |
| 16 |
# $HOME/.lockmail and the new lockfile |
| 17 |
# will be $MAILDIR/whatever |
| 18 |
|
| 19 |
|
| 20 |
# The next recipe will |
| 21 |
# filter out all messages from "at" |
| 22 |
# jobs and will put them in a terse format |
| 23 |
# (only the date and the body) in |
| 24 |
# a file called $MAILDIR/atjunk |
| 25 |
:0 fh |
| 26 |
* ^From root |
| 27 |
* ^Subject: Output from "at" job |
| 28 |
|egrep "^Date:" |
| 29 |
# The next recipe will only be used if |
| 30 |
# the previous one matched |
| 31 |
:0 A |
| 32 |
atjunk |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
MAILDIR=$HOME/News # This will change the current directory |
| 37 |
|
| 38 |
|
| 39 |
# The next recipe will create a local lockfile |
| 40 |
# named $HOME/News/dustbin.lock (*if* the condition |
| 41 |
# matches), and will feed the body of the message |
| 42 |
# through `sort` (sorry, couldn't come up with anything |
| 43 |
# better :-), after which the result will be |
| 44 |
# appended to $HOME/News/dustbin |
| 45 |
:0 b: |
| 46 |
* ^Subject:.*rubbish |
| 47 |
|sort >>dustbin |
| 48 |
|
| 49 |
# The next recipe will use the games directory as a MH |
| 50 |
# folder (of course you need MH to read the mail then) |
| 51 |
:0 |
| 52 |
* ^Subject:.*games |
| 53 |
games/. |
| 54 |
|
| 55 |
# Anything not delivered by now will go to $HOME/Mail/mbox |
| 56 |
# Using LOCKFILE=$HOME/Mail/mbox.lock |