Thanks to help, I now have my bash script (for copying mail to a web
page) working.  Ideally I would do something slightly more complex:
copy mails to a web page, then forward those same mails on to a list
of addresses.  So my originjal procmail recipe was:  

:0: 
*  ? $FORMAIL -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" |
grep -isF -f /home/movies/friends_and_family.txt
| /usr/local/scripts/moviepage


I thought to replace it with this:  

SENDON=`cat /home/movies/friends_and_family.txt`
:0: 
*  ? $FORMAIL -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" |
grep -isF -f /home/movies/friends_and_family.txt

{
     :0 c
     ! $SENDON

     :0
     | /usr/local/scripts/moviepage
}

but this does not work.  
/home/movies/friends_and_family.txt is a list of addressses like this:

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

etc.  I think I need to have one address per line, in order to make
the grep command in the second line of the filter work.  

Anyway, obviously I am either doing a bad job of setting the variable
SENDON, or SENDON is in a format that procmail or exim will not
accept.  Any ideas on how this should really be done?

Thanks once again...

matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to