#!/bin/sh
# Copyright (c) 1998 Software in the Public Interest <http://www.debian.org/>
# Written by Philip Hands <phil@xxxxxxxxx>. Distributed under the GNU GPL
# $Id: qmail-procmail,v 1.2 1998/03/24 19:31:27 phil Exp $
#Here's a copy of a script (qmail-procmail) that I include in the Debian 
#package of qmail, for just this purpose.  Here's the line you put in your 
#.qmail:
#
#  |/usr/sbin/qmail-procmail
#
#

/usr/bin/preline /usr/bin/procmail && exit 0

# check if procmail returned EX_TEMPFAIL (75)
[ $? = 75 ] && exit 111

# otherwise return a permanent error
exit 100

