Free as long as credit is given where credit is due.
This tool has been tested on the latest NetMail version (3.5.2). It can run against either NetWare or Linux NetMail installations, but the Perl script itself must be executed from a Linux machine. It cleans
mailboxes according to user-defined parameters. This tool is safe to run on a server while NetMail is running, as it uses the NMAP protocol and updates its message list frequently while executing the actual
Delete and Purge commands.
It is written in pure Perl and has a few minor Linux system calls built in (thus the Linux machine requirement). This tool uses a socket connection to talk to NetMail's NMAP protocol. It has been highly
tested in a large environment.
To use this Perl script, you need the following Perl modules installed:
Edit the Perl script, setting your configuration options in the header. Make sure that you add the machine that you run this script from as a trusted host in WebAdmin!
To execute, at a bash prompt type: perl netmail-clean.pl (optionally to time the command: time perl netmail-clean.pl)
DISCLAIMER: Although this tool was highly tested I cannot make any guarantees that it will work with your setup. It was coded very closely to the NMAP protocol specification. I take no responsibility for this