LOGABSTRACT=yes VERBOSE=no PMSRC=/etc/procmail PATH=/etc/procmail:/usr/bin:/usr/local/bin:/bin:/usr/sbin:/usr/local/sbin: SHELL=/bin/sh LOGFILE=/usr/majordomo/tmp/procmail.log HOME=/usr/majordomo MAILDIR=/usr/majordomo LOGNAME=listserv JA_ID_CACHE=$HOME/tmp/jadup-msgid.cache REAL_USER_ID = `id` # De-mangle RFC 2047 header mangling :0Hhfw * =\?[^?]+\?[qb]\?[^?]+\?= | $HOME/bin/dmmh #INCLUDERC=/etc/procmail/pm-jadup.rc :0: * $ ^X-Loop: $\LIST@natur.cuni.cz /usr/majordomo/tmp/rejected-mails.txt INCLUDERC=/etc/procmail/pm-jamime-kill.rc # run only if there's was something killed by pm-jamime-kill.rc, otherwise not # :0 fhbBHw * ^X-Mime-Type-Killed: | /usr/local/bin/sed -e 's/=$//' -e 's/=20$//' # Generate Message-Id: , if there's no such already in message headers # :0 fhw * ! ^Message-Id | formail -a "Message-Id:" :0 fhw * ! ^Subject | formail -a "Subject: No subject" # :0 fhw # * # ^TO_\/(montana|foto)@ # * MATCH ?? ()\/[^@]+ # { # LISTNAME=$MATCH # # listnames="montana!foto" # # :0: # * $ listnames ?? ()$LISTNAME%\/[^!]+ # $MATCH # :0E: # $LISTNAME # } # With new message formail will return "Program failure (1) of "/usr/bin/formail"", which is no failure at all! # It just means that the message is not duplicated (it's message-id was not present in the cache). # Turn VERBOSE off to get rid of warnings # :0 Whc: $HOME/tmp/.procmail-msgid.lock | formail -D 8192 $HOME/tmp/.procmail-msgid.cache :0 a: /usr/majordomo/tmp/duplicates.txt :0 w * $ ! ^X-Loop: $\LIST@natur.cuni.cz | ( formail -b -t -Y -i "X-Loop: $LIST@natur.cuni.cz" -i "Content-Type: text/plain; charset=ISO-8859-2" -i "Content-Transfer-Encoding: 8bit" -i "X-Mailing-List: $LIST@natur.cuni.cz" -i "List-Help: To receive a help file " -i "List-Help: , " -i "List-Info: " -i "List-Unsubscribe: (Use this command to get off the list) " -i "List-Subscribe: (Use this command to join the list) " -i "List-Post: " -i "List-Archive: (Web Archive of this list)" -i "X-Info: This message header tries to follow http://www.faqs.org/rfcs/rfc2369.html reccommendatitions" | /usr/majordomo/wrapper resend -l $LIST $LIST-outgoing-*-*-*,$EXTRA)