procmail
[Top] [All Lists]

Re: Error while writing to /etc/reject (PIPE action) (fwd)

2002-06-05 16:06:14
thanks Martin, reason I sent to you first is because someone 
(french guy) did ask about 'error while writing' as part of a
different problem and nobody responded.

after adding "i" flag, the receipe now quits after processing
the reject notice (and does NOT continue thru procmailrc which
results in the email still being delivered, wasting time on
our Sophos and WebShield antivirus email scanners)




:0HB
*^Content-Type:
{

        :0HBi
        *.*name=.*\.(exe|vbs|asp|rar|scr|ex_|exe_|bat|pif|mp3|mpg|mpeg)
        * ^Subject:\/.*
        | /etc/reject "$1" "$2" "$MATCH"

        :0HBi
        *.*name=".*\.(exe|vbs|asp|rar|scr|ex_|exe_|bat|pif|mp3|mpg|mpeg)
        * ^Subject:\/.*
        | /etc/reject "$1" "$2" "$MATCH"
}




Forwarded message:
From marty(_at_)ancient-scotland(_dot_)co(_dot_)uk Wed Jun  5 01:28:51 2002
Date: Wed, 5 Jun 2002 09:28:54 +0100
From: Martin McCarthy <marty(_at_)ancient-scotland(_dot_)co(_dot_)uk>
To: "Edward Huang \(chwdslab\)" <ehuang(_at_)atmel(_dot_)com>
Subject: Re: Error while writing to /etc/reject    (PIPE action)
Message-ID: 
<20020605082854(_dot_)GA20920(_at_)ancient-scotland(_dot_)co(_dot_)uk>
References: <000b01c20c26$a8d7ca00$63b2fea9(_at_)CHWDSLAB>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000b01c20c26$a8d7ca00$63b2fea9(_at_)CHWDSLAB>
User-Agent: Mutt/1.4i
Content-Length: 899

I wrote a pipe script to send reject notice to people sending certain
file attachments in the log file, I see               procmail: Error
while writing to "/etc/reject"

Your procmail recipe pipes the mail into /etc/reject, but your
/etc/reject script never reads from standard input.  It is ignoring the
mail that procmail gives it, and procmail is letting you know.  You can
use the 'i' flag on your recipes to tell procmail to ignore any write
errors.

The question would be much better asked on the procmail list since: a) I
might give you a wrong or incomplete answer and b) someone else will
almost certainly benefit from seeing the answer.  Thanks.

Cheers,
Martin
-- 
Martin McCarthy                 /</         http://www.non-prophet.org
marty(_at_)ancient-scotland(_dot_)co(_dot_)uk    \>\  
http://www.ancient-scotland.co.uk
                                /</    http://www.ehabitat.demon.co.uk




_______________________________________________
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>
  • Re: Error while writing to /etc/reject (PIPE action) (fwd), Edward Huang <=