#!/bin/sh

ADDRESS=netdump@example.com

mail -s "[netdump] out of space for dump" $ADDRESS <<_EOF
Out of space on `hostname` when writing to $2, the crash
dump from machine $1 will be lost.
_EOF

# The script may want to try freeing up diskspace, if so
# returning a non-zero value which makes netdump try again.
# It only tries again once though. (In order to avoid loops.)

exit 0


syntax highlighted by Code2HTML, v. 0.9.1