On Sun, 1 Oct 2006, Werner Schalk wrote: > Hi, > > hhhmm, this is strange. In a bash shell I get: ......snip... > > This is not correct, the directory /var/amavis/quarantine is full of messages > like spam-XXXXXXX.gz. So how do I have to quote it to get this to work? >
I wrote one-liner perl script: perl -e 'opendir(my $dir, "/var/amavis/quarantine"); \ print "$_\n" for map { /spam-(.*?)\.gz/ } readdir($dir); ' Which will print out all the mail_id in /var/amavis/quarantine. try that :) > Thank you. > > Bye, > Werner > > ------------------------------------------------------------------------- > Vincent Li http://pingpongit.homelinux.com Opensource .Implementation. .Consulting. Platform .Fedora. .Debian. .Mac OS X. Blog http://bl0g.blogdns.com ------------------------------------------------------------------------- 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/