On Tue, Nov 12, 2002 at 07:58:09AM -0800, Russ Gilman-Hunt wrote: > I recall when I was setting up analog (http://analog.cx) it would expand > files that ended in .gz. You could look at the setup scripts for analog and > modify the spamstats.pl file to behave in a similar fashion. As an added > bonus you could post your modifications to the list. :^)
Try adding to spamstats.pl the following line at the start: @ARGV = map { /\.gz$/ ? "gzip -dc $_" : $_ } @ARGV; It will make the program process gzipped files with "gzip -dc" before passing the contents to the main processing code in the script, while still being able to work with uncompressed files. If you try this, please let us know how it worked for you. I don't use spamstats.pl, so maybe it treats arguments in some strange fashion which is not compatible with this trick. Cheers, -- Javier Gostling Ingeniero de Sistemas Virtualia S.A. [EMAIL PROTECTED] Fono: +56 (2) 202-6264 x 130 Fax: +56 (2) 342-8763 Av. Kennedy 5757, of 1502 Las Condes Santiago Chile
msg10128/pgp00000.pgp
Description: PGP signature