Procmail filtering (was Re: FVWM: Click vs. Motion gripe)

From: Bob Weissman <b_weissm_at_kla.com>
Date: Tue, 26 Sep 1995 09:57:58 PDT

On Sep 25, 1:00pm -0500, Jason L Tibbitts III <tibbs_at_sina.hpc.uh.edu> wrote:
> >>>>> "DD" == Danek Duvall <duvall_at_lorien.princeton.edu> writes:
>
> DD> BTW, why are all subjects prefixed with `FVWM:'?
>
> I use this on all of my mailing lists and most people like it quite a bit.
> It's for the benefit of those with mail readers that don't automatically
> split things into folders. You can see at a glance which messages come
> from where. For Procmail users who would rather not see them, I use the
> following rule:
>
> :0
> *^TOfvwm_at_.*hpc.uh.edu
> * !^To.*owner-fvwm
> {
> :0 h
> SUBJECT=| formail -xSubject: | sed 's/FVWM: //'
>
> :0 fhw
> |formail -i "Subject:" -a "Subject:$SUBJECT"
>
> :0
> fvwm.spool
> }

You should use a local lockfile on the last sub-recipe by suffixing the
:0 with a second ':'.

BTW, the recipe I use is a little smaller and faster:

    :0
    * ^TOfvwm
    {
            :0Dfhw
            * ^Subject: (Re: )?FVWM:
                    | sed -e '/^Subject:/ s/FVWM: //'
            :0:
                    fvwm
    }

(Of course, I'm not filtering out owner-fvwm.)

== Bob

--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Sep 26 1995 - 13:26:08 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST