Re: Execute mhonarc every time I receive a message

2000-05-11 10:25:54
   I want MhonArc add messages every time I receive a message.
   How do I do it?

It's pretty easy ... just pipe the message into mhonarc with the -add
parameter.  Make sure you specify the proper resource file and directory
on the command line.

Here's the script I use ... I have sendmail invoke the script as an 
alias (parm 1 is the list name, base is the root of my archive html
directory, and TODAY is the current year & month) ...

mhonarc -add \
        -quiet \
        -rcfile ~majordom/html/$1.mrc \
        -outdir $BASE/$1/$TODAY \


<Prev in Thread] Current Thread [Next in Thread>