Monday, July 14, 2008

ASSP Tweak: Filename in maillog.txt

This is a simple change to ASSP (assp.pl) that places the filename of the email in the maillog.txt
First, find and change the following -- it's around line 2578 in 1.1.0 or 8046 in the latest release, inside sub Maillog. The bold lines were added. You'll need to restart ASSP to see this take effect.

Now you know exactly which file pertains to your email and you don't have to grep for it in /spam or /notspam

$Con{$fh}->{maillogfh}=$FH;
$Con{$fh}->{mailloglength}=0;
binmode $FH;
# logging filenames
mlog($fh, "'$fn'");

No comments:

Blog Archive