procmail
[Top] [All Lists]

Re: evil mailing list footers -- sed guru(*) needed

1997-07-04 00:00:00
On Fri, 4 Jul 97 01:17:10 -0400, Timothy Luoma <luomat(_at_)peak(_dot_)org>
wrote:
Mailing lists are starting to use evil footers at the end of each message,  
which is just a huge waste of space.

If you don't have any objection to enumerating the footers or parts of
them, no problem. Solving it in a generic fashion is impossible
because the footers will always be more or less ad hoc. 
  (A real neat hack would be to make a system which adapts, i.e. it
would identify messages as being from a list, and after a few
instances learn which parts are identical in all messages. Maybe after
I graduate ...)

***************** REMOVE THIS FOOTER... DO NOT REPOST ********************
(( 4 lines ))

    :0fbw
    | sed -e '/^\** *REMOVE THIS FOOTER/{' -ed -eq -e}

and another has this:
   =--------------------------------------------------------------=
(( 37!!!!! lines deleted ))
             http://www.mercurycommunications.net

    :0fbw
    | sed -e '/^ *=---*= *$/{' -ed -eq -e}

Testing and merging these into a single recipe is left as an exercise.
  Myself, I actually add something like " procmail: horrendous .sig
trimmed" in place of the removed footer.

/* era */

who is not a sed guru by any token

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>