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="
Btw; when I get this procmail stuff running well I'll start
writing new Emacs minor mode to manage and browse easily the
procmail log file. A new module to my "tiny tools" collection :-)
jari
:0
*^Subject:.*ntcsrv.*(gethelp|getlist)
* ? test -d $NTC_DIR
* !^X-Loop: $ALL_FROM
* !^Subject:.*Re:
* !^FROM_DAEMON
{
MAILDIR = $NTC_DIR
:0 c
:*^Subject:.*ntcsrv +\/.*
FILE="$MATCH" # the requested filename
:0 ah
: ? test -f $FILE
| (formail -rA "X-Loop: $NTC_FROM" ; cat $FILE ) 2>&1 | $SMAIL -oi -t
}
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "REJECTS=/users/jaalto/tmp/rejects.mbx"
procmail: Assigning "FGREP=fgrep"
procmail: Assigning "SMAIL=sendmail"
procmail: Assigning "REPLY=jari(_dot_)aalto(_at_)poboxes(_dot_)com"
procmail: Assigning "TO_ME=ssjaaa|jaalto|jari"
procmail: Assigning "NTC_FROM=NTC doc Mailserver
<jari(_dot_)aalto(_at_)ntc(_dot_)nokia(_dot_)com>"
procmail: [11199] Wed Sep 3 19:49:41 1997
procmail: Assigning "NTC_DIR=/users/jaalto/wtxt/srv-ntc"
procmail: Match on "^Subject:.*ntcsrv.*(gethelp|getlist)"
procmail: Executing " test -d $NTC_DIR"
procmail: Match on " test -d $NTC_DIR"
procmail: Match on ! "^X-Loop: $ALL_FROM"
procmail: [11199] Wed Sep 3 19:49:42 1997
procmail: Match on ! "^Subject:.*Re:"
procmail: Match on ! "(^(Precedence:.*(junk|bulk|list)|(((Resent-)?(From|Sender)
|X-Envelope-From):|>?From
)(.*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|Mail(
er)?|daemon|mmdf|root|uucp|LISTSERV|owner|request|bounce|serv(ices?|er)|Admin(is
trator)?)([^).!:a-z0-9].*)?$[^>]))"
procmail: Assigning "MAILDIR=/users/jaalto/wtxt/srv-ntc"
procmail: Skipped "+/.*"
procmail: Assigning "LASTFOLDER=:*^Subject:.*ntcsrv"
procmail: Opening ":*^Subject:.*ntcsrv"
procmail: [11199] Wed Sep 3 19:49:43 1997
procmail: Assigning "FILE="
procmail: Skipped "? test -f"
procmail: [11199] Wed Sep 3 19:49:44 1997
procmail: Assigning "LASTFOLDER=:"
procmail: Opening ":"
From jaalto(_at_)tre(_dot_)tele(_dot_)nokia(_dot_)fi Wed Sep 3 19:49:40 1997
Subject: ntcsrv gethelp
Folder: : 792
procmail: [11199] Wed Sep 3 19:49:45 1997
procmail: Notified comsat: "jaalto(_at_)0:/users/jaalto/wtxt/srv-ntc/:"