On Fri, 22 Aug 2003, Daniel Wiberg wrote:
> Delete a mail from a mailfile can be done manually, so that shouldn't be a
> problem.

I use a nice little utility called "mboxgrep", which you can also use to
remove spam and such once it's already been delivered on your system.

You can do something like this with it:
# mboxgrep -v "spam/virus text you're searching for" mailboxfile > mailboxfile.tmp
# mv mailboxfile.tmp mailboxfile

I have a little script that's a bit safer than that (makes backup copies,
in case mboxgrep bombs or something), but you get the idea.  It's really
useful and clean.

Basically, it treats a single message the same way grep treats a single
line of text.

Jeffrey Moskot
System Administrator
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to