Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2003 12:46:14 -0400
From:      parv <parv_fm@emailgroups.net>
To:        Drew Tomlinson <drew@mykitchentable.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Procmail Recipie For FreeBSD Lists?
Message-ID:  <20030703164614.GB99275@moo.holy.cow>
In-Reply-To: <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov>
References:  <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <000e01c3417b$407491b0$6e2a6ba5@lc.ca.gov>,
wrote Drew Tomlinson thusly...
>
> About a year or two ago, someone posted his recipe for sorting FreeBSD
> lists.  This particular one was nice in that it extracted the list name
> from the "From" line (I think) and then created the appropriate folder
> if it didn't exist.  So freebsd-questions list items were put in the
> 'questions' folder, freebsd-stable in the 'stable' folder, and so on.  I

I use 'f-<list>' named folder.  Change the following (part of larger recipes)
as you desire...

  #  get list id
  :0
  * ^List-ID:[    ]*.*\/<[a-z]+.*>
  { list_id = "$MATCH" }

  #  identify other lists on different criteria

  #  based on $list_id, assign $list
  #  ----
  list=
  #  freebsd lists
  :0
  * list_id  ??  ()<\/[a-z]+[-.a-z]+freebsd\.org>
  {
    #  consider -gnats-submit list same as -bugs, but not -ports-bugs
    :0
    * list_id  ??  ()(ports-bugs|cvs-ports)
    { list = f-ports }

      :0 E
      * list_id  ??  ()(gnats-submit|bugs)
      { list = f-bugs }

      #  most interesting freebsd mailing lists
      :0 E
      * MATCH  ??  ()\/(stable|ppc|cvs|mobile|questions|ports|java)
      { list = "f-${MATCH}" }

      #  dafault $list for/from any freebsd list
      :0 E
      { list = f-misc }
  }

  #  do other things

  #  file message
  :0:
  * list  ??  ^^f-[a-z]+^^
  $list



  - Parv

-- 
A programmer, budding Unix system administrator, and amateur photographer
ISO employment...

  http://www103.pair.com/parv/work/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030703164614.GB99275>