procmail
[Top] [All Lists]

reply recipe peek

2000-03-13 07:10:42

I have been using procmail auto-reply for long but recently came
to wonder about some of its options.

e.g. I had following recipe:

 :0
 * ^(To|Cc):(_dot_)*someone(_at_)somewhere(_dot_)internet
 * B?? ((where|what) is the (form|address))
 |formail -r -i "Subject: auto-reply"|(cat; cat $INFO/faq.txt) \
    | $SENDMAIL -t          

In stead replying to only the mail sender, it also replied to
addresses on the "To:" field (which is a list, and caused some 
loops of course).  Scared of such a wild behaviour, I am using 
the following currently:

 FROM=`formail -rt -xFrom:`
 :0
 * ^(To|Cc):(_dot_)*someone(_at_)somewhere(_dot_)internet
 * B?? ((where|what) is the (form|address))
 | formail -rt -i "Subject: auto-reply"|(cat; cat $INFO/faq.txt) \
         | $SENDMAIL -oi -t $FROM

I know I am doing things redundent here and not necessary, but not 
quite sure exactly what does option "-t" do after "formail" and 
after "SENDMAIL" (I read the man page but still not clear ... ;-)

Could someone enlight me a bit? :)

Thanks!
Zhiliang

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