jef moskot wrote:

Is there any simple way to specify which particular message in a mailbox
file is infected?



If you're referring to an mbox, you can user 'formail -s' to break the mbox into individual messages. I'd probably pipe the result from formail into procmail, and use procmail's filter to feed the message into clamdscan via clamassassin (http://drivel.com/clamassassin/) or somesuch and then filter the infected messages into another file.


For example (not tested, just the basic idea):

cat /path/to/mbox.old | formail -s procmail -m procmailrc

where procmailrc has something like

---------

:0fw
| /usr/local/bin/clamassassin

:0:
* ^X-Virus-Status: Yes
/tmp/mbox.quarantine

/tmp/mbox.new

----------


If you don't want the infected messages split out, you don't need the filter to dump them into quarantine box.


Craig.
------


------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to