JUNKMAIL(8)

NAME
junkmail - delete undesired mail from /usr/spool/mail

SYNOPSIS
junkmail [-a] [-w] [-dn[-m]] [-uusername] [directory]

DESCRIPTION
Junkmail is designed to cope with overuse of /usr/spool/mail. It searches /usr/spool/mail/* for old and/or large letters and deletes them, leaving a message informing the user of this action. It may also be used to delete all mail from a specified user. The following options are interpreted by junkmail.

-a  Select an audit trail.

-w  Specifies that shortened files are to be written, containing letters that indicate what has been deleted. Otherwise, only an audit is performed.

-dn[-m]
    Specifies that the following number n or range of numbers n-m defines the age of discarded letters. A letter newer than n days will only be discarded if the mail file exceeds the limit by 100%. A letter between n and m days old will be discarded if the mail file exceeds the size limit. A letter older than m days will always be discarded. N defaults to 7; m, to 21. If a single value is specified, it is taken to be m, and n is assumed to be 7. Of course, m must be greater than n.

-uusername
    specifies that all mail originating from user "username" be deleted, whether or not it satisfies the aging constraints. All other mail will be untouched, and no letter informing the recipient(s) of the deletion will be left.

[directory]
    is the optional mail directory name, with "/usr/spool/mail" as the default.

FILES
/usr/spool/mail/*

SEE ALSO
mail(1)

BUGS
When an individual username is selected, junkmail cannot cope with large files and prints a message to that effect rather than deleting the letters.