perhaps this isn't right, but I can't see why:
:0
* ^Subject:.send-ftp-uuencoded *\/[^ ].*
* !^Subject:.Re:
{
file=$MATCH
:0c
mailserver-requests
MAILDIR=$FTPSERVER
:0
* ? test -r $FTPSERVER/$file
|(formail -rt -I"From: Timothy Luoma <luomat(_at_)peak(_dot_)org>" ; \
cd $FTPSERVER; uuencode $file $file )|$SENDMAIL -oi -t
:0E
|(formail -rt -I"From: Timothy Luoma <luomat(_at_)peak(_dot_)org>" \
-I"Subject: File not found ($MATCH)" ; \
/bin/cat "$PROCDIR/file_not_found" ; \
ls -C $MAILSERVER )|$SENDMAIL -oi -t
}
I send a message with this subject:
send-ftp-uuencoded /pub/next/submissions/README
which should (in my mind) send a UUENCODED version of the file
/pub/next/submissions/README in response. But instead I get the
error message response:
Subject: File not found (-uuencoded /pub/next/submissions/README)
I'm guessing I have something wrong in this line:
* ^Subject:.send-ftp-uuencoded *\/[^ ].*
but it works fine for other similar things, like:
* ^Subject:.send-ftp *\/[^ ].*
* ^Subject:.send-mime *\/[^ ].*
* ^Subject: send-ascii *\/[^ ].*
* ^Subject: (search_peak|search-peak) *\/[^ ].*
I'm stumped....
TIA
TjL
--
Tj Luoma (luomat(_at_)peak(_dot_)org)
http://www.next.peak.org/~luomat
Awaiting Apple's NeXTStep