Jari Aalto wrote:
[snip]
-> Hi, I almost got the mailserver running but
-> Why isnt't the MATCH set to "gethelp" ? What is the right way
-> to extract the command from subject line?
->
-> The subject sent was "ntcsrv gethelp" and The mysterious part says:
->
-> procmail: Skipped "+/.*"
-> procmail: Assigning "LASTFOLDER=:*^Subject:.*ntcsrv"
-> procmail: Opening ":*^Subject:.*ntcsrv"
-> procmail: [11199] Wed Sep 3 19:49:43 1997
-> procmail: Assigning "FILE="
[snip]
-> :0
-> *^Subject:.*ntcsrv.*(gethelp|getlist)
-> * ? test -d $NTC_DIR
-> * !^X-Loop: $ALL_FROM
-> * !^Subject:.*Re:
-> * !^FROM_DAEMON
-> {
-> MAILDIR = $NTC_DIR
->
-> :0 c
-> :*^Subject:.*ntcsrv +\/.*
Get rid of the colon on the above line; it shouldn't be there. The above
line should be:
* ^Subject:.*ntcsrv +\/.*
->
-> FILE="$MATCH" # the requested filename
->
-> :0 ah
-> : ? test -f $FILE
Ditto.
* ? test -f $FILE
-> | (formail -rA "X-Loop: $NTC_FROM" ; cat $FILE ) 2>&1 | $SMAIL -oi -t
-> }
[snip]
Lates!
==========================================================================
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49)
PGP Key FingerPrint (09/03/94): 4C97 F1FA 7055 6891 49D1 ADF2 DD63 0C15
====================> Please PGP encrypt your email <=====================