procmail
[Top] [All Lists]

Re: Suppressing processing of UU/BASE64 encoded attachments

1998-07-21 18:18:09
On Tue, 21 Jul 1998 14:30:16 +0300 (EET DST),
era eriksson <era(_at_)iki(_dot_)fi> wrote:
On Sun, 19 Jul 1998 16:52:35 -0700 (PDT), "John D. Hardin"
<jhardin(_at_)wolfenet(_dot_)com> wrote:
Does this capability currently exist? If not, is it planned? Does anybody
have any arguments against implementing this restriction on body
processing?
I think I would basically generate a second message with the
attachments excluded and see what score I get on that. Probably too
messy to do in practice. 

Actually, it would be nice if there was an alternative to the :f
switch saying, make a copy of the message, and do the following
filtering on the in-memory copy used for matching, but output the
original, unadultered copy when eventually delivering a message. 

Whoops, that was a tangled explanation. How about this example
instead: 

    # Subsequent scans will operate on a copy with attachments removed
    :0Fwb
    | remove-all-attachments

    # Calculate scores on copy without attacments
    :0B
    * -5^0
    *  1^1 \!!!
    output
    # Actually writes out the message the way it was before 
    #  the F recipe

Comments?

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>