procmail
[Top] [All Lists]

Fileserver

2001-06-28 06:17:01
Is there anyone that has a working fileserver?  I am trying and I cannot
get it to work.  This is what i have.

SHELL=/bin/sh
:0
* ^Subject: send file [0-9a-z]
* !^X-Loop: poohba(_at_)poohba\(_dot_)adsl(_dot_)duke(_dot_)edu
* !^Subject:.*Re:
* !^FROM_DAEMON
* !^Subject: send file .*[/.]\.
{
  MAILDIR=/home/poohba/fileserver # chdir to the fileserver directory
  SENDMAIL=/usr/sbin/sendmail

  :0 fhw                   # reverse mailheader and extract name
  * ^Subject:*.send file \/[^ ]*
  | formail -rA "X-Loop: poohba(_at_)poohba(_dot_)adsl(_dot_)duke(_dot_)edu"

  FILE="$MATCH"            # the requested filename

  :0 ah
  | cat - ./"$FILE" 2>&1 | $SENDMAIL -oi -t

}


-- 

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Fileserver, Poohba <=