procmail
[Top] [All Lists]

Re: Procmail filter sometimes failed...

2008-08-20 19:33:44
thank you... i will make this change to make the rule in right form.
Just for recording: Problem Solved.
thanks to all people for the help.

2008/8/20 Dallman Ross <dman(_at_)nomotek(_dot_)com>:
josias gonçalves wrote Tuesday, August 19, 2008 10:52 PM:

Possible solution tested.
this code save for now in the tests.

#First, see if is quoted-printable and then convert.

:0fW
* ^Content-Transfer-Encoding: quoted-printable
| emil -f 2 -l 2 -u -C ISO-8859-1 -F RFC822 -H 8bit -T 8bit
       :0 Afhw
       | formail -I "Content-Transfer-Encoding: 8bit" \
                 -I "X-Converted: Quoted-Printable to 8bit"

# Now filter

SHELL=/bin/sh

:0HB
* ! ? /usr/local/etc/blockmail/blockmail.pl
{
  EXITCODE=77
  :0
  /var/mail/attach             # drop to /var/mail/attach
}


One thing I'd suggest is putting the SHELL assignment at the top.  You
have a pipe before that statement, and the pipe will probably invoke
your usual interactive shell with all its overhead.

Dallman


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail