Name

mdssclean - Clean network site directories

Syntax

mdssclean [ options ] [ site… ]

Description

Mdssclean cleans the $/mdss directories by deleting old rnews batches and returning old mail. It also removes any “Finder.Data” files found, and compacts empty site directories to reclaim disk space.

When invoked without any site arguments, mdssclean automatically cleans all directories found in $/mdss. Otherwise, mdssclean only processes the directories specified by site arguments.

Mdssclean obtains user-defined default settings from its resource file (described later), but these can be overridden by supplying command line options.

Options are:

-d

Enables deleting. Without this option, mdssclean goes through the motions, reporting file ages, etc., but does not bounce and delete messages, nor compact directories.

-r

Operate only on rnews batches (skips mail).

-a age

Sets the age limit on files in days. Files the same age or older than this setting are eligible for cleaning. (Default is 10 days)

-i

Include invisible directories when mdssclean is invoked without any site arguments.

-l lines

Sets the number of body lines to return in bounced messages. Does not apply to messages sent with rcp; such files only have the header and rcp information stub returned. A value of -1 returns the entire message. A value of 0 returns only the header. (Default is -1).

Resource File


The mdssclean resource file includes three items. The first item is the number of days to assume as the age for deleting files. The second item is the maximum number of body lines to return. The third item is a list, beginning with a count, of names to ignore when bouncing a message. For example, if old mail is from “uucp”, it should not be bounced back to “uucp” since it isn’t a real person.

Sample resource file:

10 -1 3 mdss uucp postmaster

Mdssclean’s internal defaults are the same as the above example.

See Also

maint(ADM), mdss(NET)

Files

$/mdss/*
site directories,
$/etc/rsrc/mdssclean.rsrc
resource file.

Author

Morgan Davis. Original author Daniel Davidson.