procmail
[Top] [All Lists]

simple recipe for fun :-)

1996-06-12 16:54:10


Would someone please check this recipe for me for fun? :-)

-- I want to insert a mail header to a forwarding mail.  Recipe 1 worked;
   but not recipe 2.  I wonder why not?  Can someone do a fix?
-- Does "!" = "$SENDMAIL" 100%?  What's difference?

Thanks!
   
Zhiliang

===========
 Recipe 1
-----------
MEMO_HELP  = '<-------! ATTN: Scott - please help to reply !--------->'

:0 c
* ^(To|Cc):(_dot_)*dave(_at_)peter(_dot_)domain(_dot_)name(_dot_)net
* ^Subject:.*help
| formail -i "X_MEMO: $MEMO_HELP" | $SENDMAIL 
scott(_at_)sun(_dot_)domain-name3(_dot_)net

===========
 Recipe 2
-----------
MEMO_HELP  = '<-------! ATTN: Scott - please help to reply !--------->'

:0 c
* ^(To|Cc):(_dot_)*dave(_at_)peter(_dot_)domain(_dot_)name(_dot_)net
* ^Subject:.*help
| formail -i "X_MEMO: $MEMO_HELP" | ! `cat $MAILDIR/help.grp`

# $MAILDIR/help.grp contains some mail addresses.
--------
/end

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