procmail
[Top] [All Lists]

Best way to nest rc files ?? and a formail question

1999-11-26 22:14:29
Well the subject line does not really say what I am trying to do so let me
explain it here with a example..

:0
* ^To:.*(sales)   (no other action needed in main rc file for sales)
Branch to salesrc  <<<how do you do this


(salesrc)

:0
* ^Subject:.*(product a)

{
 do all stuff needed for product a

}

:0
* ^Subject:.*(product b)

{
 do all stuff needed for product b

}

:0
* ^Subject:.*(product c)

{
 do all stuff needed for product c

}


Now a formail question??

I've got the following action line which works fine but is long..
Is there a way I can input the formail options & text from a file??

:0 c
| (formail -r -A X-Loop:flagmail -i Subject:'Thanks for visiting our\
website!!' ; cat $HOME/replies/reply_cobalt_vw) | $SENDMAIL -oi -t -f$SLSPRSN1 


Thanks in advance.....