##### lm_lyris.rc # # Resource file for procmail. # Filters list messages from lists handled by Lyris ListManager. # # Variables, in (set before calling): # LISTNAME list name (between [...] in Subject:); # LISTSERVERDOMAIN domain of the list server handling this list # (the part after @) # LISTFOLDER where to store email if it's from this list; # nothing will be stored if this is empty # LISTFOLDER_UMASK if set, umask to use when saving to LISTFOLDER # Variables, returned: # ISTHISLIST set to "1" if email is from this list, unset otherwise # LISTEMAIL unset # # Run with e.g.: # LISTNAME="Weather Discussion" # LISTSERVERDOMAIN=frog.org # LISTFOLDER=somepath/weather-List # INCLUDERC=yourpath/lm_lyris.rc # in your $HOME/.procmailrc. # # The latest version is always available from: # http://volker.dnsalias.net/soft/procmail/ # # Copyright (C) by Volker Kuhlmann # Released under the terms of the GNU General Public License (GPL) Version 2. # See http://www.gnu.org/ for details. # # Volker Kuhlmann # 19 Apr; 27 Jun 2002 # 7 Sep 2006 # LISTEMAIL=$LISTNAME ## Set ISTHISLIST if match occurs ISTHISLIST= # admin: :0 * $ ^From bounce-message-[a-z0-9]+@$LISTSERVERDOMAIN * $ ^From: .*lyris@$LISTSERVERDOMAIN * $ ^Subject: .*$LISTEMAIL { ISTHISLIST=1 } # list: :0 * $ ^From bounce-$LISTEMAIL-[0-9]+@$LISTSERVERDOMAIN * $ ^To: .*$LISTSERVERDOMAIN * $ ^List-Unsubscribe: #Subject: ZEIT-Brief 11. April 2002 #To: null@newsletter.zeit.de (Zeit-Newsletter-Abonnenten) #From: ZEIT-Jobletter #Subject: JOB-newsletter DIE ZEIT 15. April 2002 #To: "ZEIT Job-Newsletter" ## If match occurred and LISTFOLDER is set, save to LISTFOLDER :0 * ISTHISLIST ?? ^^1^^ * ! LISTFOLDER ?? ^^^^ { :0 * ! LISTFOLDER_UMASK ?? ^^^^ { UMASK=$LISTFOLDER_UMASK } :0 : $LISTFOLDER } LISTEMAIL= LISTEMAIL= ##### EOF lm_lyris.rc