procmail
[Top] [All Lists]

Re: new recipe filter...

2008-07-26 21:16:49
Dallman Ross wrote:

Professional Software Engineering wrote:
The following would actually set the header
and deliver it:

:0
* > 2048000
{
         :0f
         | ${FORMAIL} -A"X-Note: Oversize/Not Filtered"

         :0:
         $DEFAULT
}

I would add the w flag to the recipe with the filter.

And the h flag ... the filter as it stands reads in the entire body (which by definition here is ridiculously large) and spits it out unchanged, so it might as well save the effort and filter only the head.
____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>