On Thu, 27 Jun 2002, Greg Matheson wrote:
On Thu, 27 Jun 2002, Seth Chaiklin wrote:
For now I have simply kludged the following (inadequate) solution (mostly because my recipe writing ability remains at "trial-and-error").
1. In aliases file:
listname-subscribe: "|exec /home/list/.bin/flist listname-request"
2. Activiate rc.local.r10 in rc.custom
3. rc.local.r10 is called in rc.request and contains a preemptory
:0: | subscribe
Couldn't you have a .forward file for the user listname-subscribe that forwards the email to listname-request, or perhaps even just "|exec /home/list/.bin/flist listname-request" stuck in the .forward file would be OK. I've forgotten what little I learned about sendmail.
Ok.....in the sendmail aliases file: listname-subscribe: "|exec /home/list/listname/forward" (i.e., this simply pipes the message through a file called "forward") The script in the file "forward" is: FORMAIL=/usr/bin/formail # define location of formail from=`$FORMAIL -xFrom: ` # use formail to extract sender # send the appropriate command echo "Subject: subscribe" | /usr/sbin/sendmail -f "$from" testing-request This seems to work just fine. I suspect this "forward" script could be incorporated into the rc.request script -- so back to some trial-and-error. Cheers, Seth Chaiklin