mboxfull
mboxfull
is a trivial little program, without any runtime, to
send email to users whose email box is nearly full. It does
not enforce any limits, just natters at them.
This is intended to be run from cron once a day or so
to send messages to users.
There are a number of parameters:
- --maxsize=1000000
Maximum size of the allowed mailbox.
- --msgfile=/etc/mboxfull
Prototype message to send to the user.
This has substitutions applied to it. In particular,
"_user_" is replaced with the user name and "_size_"
is replaced with the current mailbox size. Other
substitutions are allowed as well including all
of these parameters (e.g. _maxsize_ for the maximum
size allowed).
- --database=/tmp/mboxfull
Database to keep from sending messages too often.
- --mbox=/var/spool/mail/USER
The name of the user's mailbox. This name is modified
by having USER replaced with the user's login name, and
HOME replaced with the user's home directory. For Cooper's
use, this would be set to "HOME/mbox".
- --sendmail=/usr/sbin/sendmail
Location of sendmail.
- --interval=2
Number of days between sending warnings.
You can pick up the entire archive for
version v0.00.
This contains all of the files mentioned on this page.
Once you have the tar file, you will need to extract and build it.
Do something like the following:
cd
mkdir mboxfull
tar xvfz mboxfull-0.00.tar.gz
cd mboxfull-0.00
make
su
make install