Werner wrote: > Hi,
> thanks a lot for all your answers. My first problem is that I don't have an > amavis logfile so I have to work with the .gz files on the disk. Have you looked in your mail logs? > Amavis worked > fine for several month but a Gentoo update basically screwed up the config > (without me noticing). Anyway, I tried this: > # zgrep '^X-Envelope-To: ' /var/amavis/quarantine/* | grep 'mydomain.com' | > grep 'spam-' | cut -c 24-43 >>list > This command results in "-bash: /bin/zgrep: Argument list too long" as zgrep > is unable to cope with 8000 input files I'd say. Thus I tried to use xargs > and find but I couldn't work out a command which runs fine. Would somebody be > able to give me a hand on this? > Thank you. > Bye, > Werner zgrep '^X-Envelope-To: ' /var/amavis/quarantine/spam-a* | grep 'mydomain.com' | cut -c 24-43 >>list zgrep '^X-Envelope-To: ' /var/amavis/quarantine/spam-b* | grep 'mydomain.com' | cut -c 24-43 >>list If I'm not mistaken, the first letter of the file name (after 'spam-') could be lower case a-z, upper case A-Z or 0-9, so you could run this 62 times (modified each time), but gathering from mail log may be more desirable for reasons stated earlier. You may even want to split it up into different files so you could control it a little better. >>lista >>listb amavisd-release - < lista Gary V ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/