# Example of $HOME/.procmailrc  mail filter file that splits up Linux mailing
# lists into single messages and then feeds them to the Mail -> News newsgate
# package by Rich Salz for postings into local newsgroups.
# Username is list - Copy procmail.txt to $HOME/.procmailrc and adjust to suit.
#
# Check if all paths in PATH are reachable, remove the ones that are not.

PATH=/usr/bin:/bin:/usr/local/bin:.

MAILBOX=/usr/spool/mail		# Normal mail system spooldir
MAILDIR=$HOME				# This directory MUST exist
DEFAULT=$MAILBOX/list
LOGFILE=$MAILDIR/logfile
#LOGABSTRACT=yes
VERBOSE=yes

:0:				# Linux KERNEL Channel
* ^X-Mn-Key:.*KERNEL
| formail +1 -A "X-Mn-Key: KERNEL" -ds /usr/bin/mail2news -n list.linux.kernel -o "Mail2News Gateway"

:0:				# Linux KERNEL Channel
* ^Subject:.*KERNEL Channel digest
| formail +1 -A "X-Mn-Key: KERNEL" -ds /usr/bin/mail2news -n list.linux.kernel -o "Mail2News Gateway"

:0:				# Linux NET Channel
* ^X-Mn-Key:.*NET
| formail +1 -A "X-Mn-Key: NET" -ds /usr/bin/mail2news -n list.linux.net -o "Mail2News Gateway"
#| /usr/bin/mail2news -n list.linux.net -o "Mail2News Gateway"

:0:				# Linux NET Channel
* ^Subject:.*NET Channel digest
| formail +1 -A "X-Mn-Key: NET" -ds /usr/bin/mail2news -n list.linux.net -o "Mail2News Gateway"

:0:				# Linux PPP Channel
* ^X-Mn-Key:.*PPP
| formail +1 -A "X-Mn-Key: PPP" -ds /usr/bin/mail2news -n list.linux.ppp -o "Mail2News Gateway"

:0:				# Linux DOC Channel
* ^X-Mn-Key:.*DOC
| formail +1 -A "X-Mn-Key: DOC" -ds /usr/bin/mail2news -n list.linux.doc -o "Mail2News Gateway"

