Upgrading to NAGS v2.D from v2.9+

If you are using a version of the NAGS filter previous to v2.9, just wipe out all of your NAGS files and perform the installation from scratch.

In addition to downloading the new nags_filter.pl file, you may also wish to download the latest spammers and junkmailers file.

Previously all of the NAGS Filter files were located in the users home directory. Starting with NAGS v2.D, the default location will be in a directory called "nags" branching the users home directory.

For example, if your home directory is:
/home/i/ian

Then the NAGS files should all be stored in:
/home/i/ian/nags

In order to accomdate this, users who have previously installed the NAGS filter should do the following:

Step 0: Disable NAGS Filter
mv .forward forward

Step 1: Modify NAGS Configuration File
Using your favorite text editor, edit nags_config.pl and locate the line that reads:
$home_dir= $ENV{"HOME"} || $ENV{"LOGDIR"} || (getpwuid($<))[7];

Add this line underneath it:
$home_dir="$home_dir/nags";

Locate the line that looks like...:
@ignores=('postmaster@', ...[more stuff here]... );

And change it so it reads:
@ignores=('postmaster@','localhost', ...[more stuff here]... );

Step 2: Modify Forward File
Using your favorite text editor, edit forward and locate the line that reads:
|/your/home/directory/nags_filter.pl

Change it to read:
|/your/home/directory/nags/nags_filter.pl

Step 3: Move NAGS Files to "nags" directory
mkdir nags
mv nags_config.pl nags
mv nags_filter.pl nags
mv spammers nags
mv exceptions nags
mv junkmailers nags
mv junkmail nags
mv mail-log nags

Step 4: Test it out
Try a couple tests from the command line like are documented in the installation instructions

Step 5: Enable NAGS Filter
mv forward .forward