![]() |
|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
I don't have them running on the same machine at the moment, so I can't run a proper test, but like many programs clamscan should understand '-' as scanning its standard input.
I tried using cat and head as a test on my OpenBSD machine: Code:
& pi 1 cat ... output for message number 1 ... & pi 1 head -n 3 Referencing before 1 & pi 1 /tmp/filterscript ... top 3 lines of message number 1 ...
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
![]()
Thanks Tarry,
You really helped me. This is the proper command. Code:
Pi message_number "clamscan -" Code:
Pi message_number "clamscan --scan-mail=yes -" I will post my .nailrc when I check man pages. Last edited by Oko; 26th July 2009 at 04:50 AM. |
|
||||
![]()
The real way to do it is by scripting a nice folder-hook. It looks to me that would be very easy to write a hook which would also pipe attachments through file command thereby determining the their true nature (most email clients have a serious problems with it) and then strip the message from binary attachments for instance.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Two antiviruse F-prot and ClamAV | mfaridi | FreeBSD Security | 4 | 12th October 2008 09:15 PM |
Can't connect to clamd through /var/run/clamav/clamd | ccc | FreeBSD Ports and Packages | 2 | 12th July 2008 08:27 PM |