##### lm_sparklist.rc # # Resource file for procmail. # Filters list messages from lists handled by sparklist's listserver. # See http://SparkLIST.com/ # # Variables, in (set before calling): # LISTNAME list name (between [...] in Subject:); # LISTFOLDER where to store email if it's from this list; # Variables, returned: # ISTHISLIST set to "1" if email is from this list, unset otherwise # # Run with e.g.: # LISTNAME="WEATHER" # LISTFOLDER=somepath/weather-List # INCLUDERC=yourpath/lm_sparklist.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 # 13 Apr; 1 Dec 2002 # # viavoice@sparklist.com 13Apr02 # vvdictator@laser.sparklist.com 13Apr02 ## Set ISTHISLIST if match occurs ISTHISLIST= LSERVERDOM__="(|[a-z0-9]+.)sparklist.com" # admin: :0 * $ ^From (sparklist-admin|bounce-message-.*)@$LSERVERDOM__ * $ ^From: .*sparklist(|[-[a-z]+)@$LSERVERDOM__ #Reply-To: "SparkLIST.com" (Apr02) #Reply-to: viavoice-owner@lists.ibm.com (Sep99) #X-sparklist-type: .. (Apr02) { :0 * $ ^Subject: .*$LISTNAME($|[ @]) { ISTHISLIST=1 } :0 B * $ .*(Welcome|member).*$LISTNAME($|[ @]) { ISTHISLIST=1 } } # list: :0 * $ ^From (bounce|owner)-$LISTNAME.*@$LSERVERDOM__ * $ ^Subject: .*\[$LISTNAME] * $ ^(Reply-to|To|List-Unsubscribe): .*$LISTNAME.*@$LSERVERDOM__ { ISTHISLIST=1 } ## If match occurred and LISTFOLDER is set, save to LISTFOLDER :0: * ISTHISLIST ?? ^^1^^ * ! LISTFOLDER ?? ^^^^ $LISTFOLDER ##### EOF lm_sparklist.rc