[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: feature request for this mailing list



I've just noticed that the snippet I quote of my procmailrc is out of 
context and lacks the match sigil. Here's my actual recipe. I prefer all
my lists under a sub-folder 'l' (and I use / as my IMAP folder separator
character). You may wish to use some other scheme and possibly
manipulate the list-id more as Tom does for Debian lists (stripping
debian- prefix in his case)

    :0
    * ! ^List-Id.*debian-security-announce
    * ^List-Id:[^<]+<\/[A-Za-z0-9.-]+
    {
      # is it a debian list?
      :0
      * ^List-Id:.*debian.*lists\.debian\.org
      subst=| echo "$MATCH" | sed 's/\([A-Za-z0-9-]\+\)\..*/\1/'
    
      # fedora?
      :0E
      * ^List-Id:.*lists\.fedoraproject\.org
      subst=| echo "$MATCH" | sed 's/\([A-Za-z0-9-]\+\)\..*$/fedora-\1/'
    
      :0E
      subst=| echo "$MATCH" | tr . :
    
      :0
      $MAILDIR/l/$subst/
    }


Reply to: