Automatically creating folders for mailing lists

    I've been using some simple procmail rules to automatically create folders for mailing lists for ages. Tony asked me for those rules today, so I figured I'd just put them online.

      
      ##########################################################################
      
      # Mailman
      
      
      
      :0:
      
      * List-Id:.*<\/[^>]*
      
      $MATCH
      
      
      
      :0:
      
      * List-Post: ]*
      
      $MATCH
      
      
      
      ##########################################################################
      
      # Majordomo lists (sometimes don't have <>'s around the address
      
      
      
      :0:
      
      * X-Mailing-List:.*<\/[^>]*
      
      $MATCH
      
      
      
      :0:
      
      * X-Mailing-List:.*\/.*
      
      $MATCH
      
      
      
      ##########################################################################
      
      # Ezmlm
      
      
      
      :0:
      
      * Mailing-List: .* \/[^ ;]*
      
      $MATCH
      
      
      
      ##########################################################################
      
      # I'm not sure what creates this one...
      
      
      
      :0:
      
      * X-Loop: \/.*
      
      $MATCH
      
      


posted at: 14:59 | path: /procmail | permanent link to this entry

    Add a comment to this post:

    Your name:

    Your email: Email me new comments on this post
      (Your email will not be published on this site, and will only be used to contact you directly with a reply to your comment if needed. Oh, and we'll use it to send you new comments on this post it you selected that checkbox.)


    Your website:

    Comments: