procmail
[Top] [All Lists]

Combining two instructions in procmail.rc

1999-07-19 09:48:13
Hello,

I would like to combine the following two Procmail instructions into 
one:

1) forwarding a message which was sent to a dummy mailbox to an
    external address

2) invoque Mhonarc to convert this message into a html-page  

# Forwards mail for dummy 'dummy(_at_)mysite(_dot_)net' to external address 
:0
* ^TOdummy
* !^FROM_DAEMON
! external(_at_)address(_dot_)com

# Invoques Mhonarch to convert all mail send to 'dummy(_at_)mysite(_dot_)net' 
# into html-files and store them into ../mydir
:0: dummy.lock
* ^TOdummy(_at_)mysite(_dot_)net
| /usr/www/users/my/cgi-local/mha/mhonarc -add -umask 022 \
-rcfile /usr/www/users/my/cgi-local/mha/rcfile4 -nolock -nodoc \
-outdir /usr/www/users/my/intercam/listas-html/mydir

I have not tried the above, but I supposed that Procmail would get 
confused, getting 2 different instructions for the the same message. 
Therefore, how to combine these 2 into 1?

Many thanks for your help in advance!

Regards,

-brt


Bert Hiddink, FUNDACION GALILEO
Correo electronico: hiddink(_at_)sipromicro(_dot_)com
Sitio: http://www.sipromicro.com
Tel. (506) 280 8683, telefax. (506) 280 8847

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