Novell Home

NetMail 3.5.2 Mailbox Cleanup Routine

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Clean up old E-mail messages according to user-defined parameters from NetMail system.

Vitals

Product Categories:
  • Linux
  • NetMail
  • Functional Categories:
  • Cleanup
  • Linux
  • NetMail
  • Updated:28 Jun 2006
    File Size:12KB
    License:Free as long as credit is given where credit is due.
    Download:/coolsolutions/tools/downloads/netmail-clean.pl
    Publisher:Timothy Patterson

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    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:
      Socket
      Date::Manip
      Number::Bytes::Human

    Usage:

    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 code's actions!

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    Novell® Making IT Work As One

    © 2008 Novell, Inc. All Rights Reserved.