procmail
[Top] [All Lists]

re: Forward mail

1997-07-05 04:51:00
At 12:18 PM 7/5/97 +0200, Raymond Willemsen wrote:
FROM=`formail -rtzxTo:`
:0h
* ^TObrochure
* ! ^Subject:
* B ?? < 5
| ( formail -I"To: rambox(_at_)mbox(_dot_)vol(_dot_)it" \
-I"Subject: subscribe ; echo "SUBSCRIBE $FROM" ) \
| $SENDMAIL $SENDMAILFLAGS rambox(_at_)tin(_dot_)it

I add the h flag but It seems not to work; always the same 
message in the log file:
Badly placed ()'s.

Can I play too?  :-)

You've got an unmatched " on the -ISubject:.  Thus the ) is
inside a quoted string, and appears unmatched.  (The rest of your
.procmailrc may not work either, due to the mismatched quotes.)
Put a " after the word 'subscribe'.

Cheers,
Stan

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