Automatically creating folders for mailing lists

  • Post author:
  • Post category:Procmail

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