Delete large amount of spam

Alain Spineux aspineux at gmail.com
Thu Aug 16 13:05:32 CEST 2007


On 8/16/07, Gunnar Wrobel <wrobel at pardus.de> wrote:
>
> Thomas Spuhler <thomas at btspuhler.com> writes:
>
> > Is there an easy way to delete a very large amount of spam
> > in /var/spool/amavis/
> > Rm doesn't work, message is too many arguments.
>
> If "rm" complains about about the number of arguments on the command
> line, you can list all the files using "ls" and pipe them into "xargs
> rm" that will run the "rm" command on smaller chunks:
>
> ls * | xargs rm


This will not work for the same reason of "rm *" is not working :-)

ls | xargs rm

should work

and to be really sure (to bypase any "ls" aliases):

/bin/ls | xargs

Regrads

I don't know if simply deleting files in the amavis spool is a good
> idea though.
>
> > I started to delete them in as large chunks as possible, but gave up
> after
> > about 6 hours.
> > Konqueror isn't able to display all files
> >
> > --
> > Thomas
> > _______________________________________________
> > Kolab-users mailing list
> > Kolab-users at kolab.org
> > https://kolab.org/mailman/listinfo/kolab-users
>
> --
> ______ http://kdab.com _______________ http://kolab-konsortium.com _
>
> p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium
>
> ____ http://www.pardus.de _________________ http://gunnarwrobel.de _
> E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
> Tel.   : +49 40 432 72335                           Bundesstrasse 29
> Fax    : +49 40 432 70855                            D-20146 Hamburg
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    >> Mail at ease - Rent a kolab groupware server at p at rdus <<
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20070816/9bbb543f/attachment.html>


More information about the users mailing list