OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Bugtraq archives for 3rd quarter (Jul-Sep) 1997: Re: procmail

Re: procmail

Adam Shostack (adamHOMEPORT.ORG)
Mon, 21 Jul 1997 16:51:20 -0400

I think my .procmailrc is still more paranoid than the one in the man
page:


# basic file server.  Only sends whats in .outbound
:0
* ^Subject: (SEND|get) [0-9a-z][-_/0-9a-z.]+$
* !^Subject:.*[ /.]\.
* !^FROM_DAEMON
{
   # FILE=`formail -x Subject: | sed 's/.* //'`
   FILE=`sed -n -e '/Subject:/s/.* //p' -e '/^$/q'`

  :0c
  | (formail -rt -A"Precedence: junk";\
     cat $HOME/.outbound/$FILE) | $SENDMAIL -t

  :0:
  $MAILDIR/.log
}



--
He has erected a multitude of new offices, and sent hither swarms of
officers to harrass our people, and eat out their substance.