procmail
[Top] [All Lists]

Re: Invoking a program via procmail isn't working.

2005-08-23 03:30:13
Michelle Konzack wrote:
Am 2005-08-22 14:15:15, schrieb Bruce Johnson:


I want every mail sent to this user to go through the filter. This is  
the account our mail server AV software is sending 'virus found'  
messages to. For various reasons we want to keep a copy of all the  
messages, but the perl script is parsing out two lines of the  
message: the name of the virus found and the originating sender.


why not:

:0fw
| $HOME/procvir.pl >> procvir.log

:0
msg


The "f" flag assumes you filter the message through the procvir.pl
program, but you capture the output and append that to a file.
The output of that filter is empty and you'll get an empty
message in the "msg" folder.  Or isn't it?



Shouldn't that be simply?

   :0 c:
   | $HOME/procvir.pl >> procvir.log

   :0
   mbox

AND you have to make sure that the user ("virusalert" as seen
in another mail in this thread) has write permission in the procvir.log 
file.



-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  
Paul(_dot_)Bijnens(_at_)xplanation(_dot_)com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail