##### lm_yahoo.rc # # Resource file for procmail. # Filters list messages from yahoo groups. # # Variables, in (set before calling): # LISTNAME list name (between [...] in Subject:); # LISTEMAIL address of list (leave out part after @ and any generic # parts like -return); defaults to LISTNAME # 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" # LISTEMAIL="weatherdisc" # LISTFOLDER=somepath/weather-List # INCLUDERC=yourpath/lm_yahoo.rc # in your $HOME/.procmailrc (you can leave out LISTEMAIL if it's the same as # LISTNAME). # # 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 # 11, 12, 13, 24, 26 Apr; 13 May; 1 Dec 2002 # 8 Jul 2004 # ## LISTEMAIL defaults to LISTNAME :0 * LISTEMAIL ?? ^^^^ { LISTEMAIL=$LISTNAME } ## Set ISTHISLIST if match occurs ISTHISLIST= LSERVERDOM__="(yahoogroups|returns.groups.yahoo|egroups|onelist).com" # admin: :0 * $ ^From (confirm|notify)-.*@$LSERVERDOM__ * $ ^From: .*@$LSERVERDOM__ * $ ^(Subject|From): .*($LISTEMAIL|$LISTNAME)($|[ @]) { ISTHISLIST=1 } # list: :0 #* $ ^Subject: (|[A-Za-z]*:| |\[)*\[$LISTNAME] * $ ^Subject: .*\[$LISTNAME] * $ ^Mailing-List: list $LISTEMAIL@$LSERVERDOM__ * $ ^Delivered-to: mailing list $LISTEMAIL@$LSERVERDOM__ * $ ^List-Unsubscribe: { ISTHISLIST=1 } ## If match occurred and LISTFOLDER is set, save to LISTFOLDER :0 * ISTHISLIST ?? ^^1^^ * ! LISTFOLDER ?? ^^^^ { :0 * ! LISTFOLDER_UMASK ?? ^^^^ { UMASK=$LISTFOLDER_UMASK } :0 : $LISTFOLDER } LISTEMAIL= ##### EOF lm_yahoo.rc