[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mailman hack for router.cf




Make that alias.cf.. Duh

On Fri, 2003-06-20 at 22:20, Jeff Warnica wrote:
> It might be blazingly obvious for anyone who has thought of doing so,
> but just for the record, if you wanted to integrate Mailman into
> zmailer, this is what you want in router.cf
> 
> You would also need to define MAILMAN_ROOT in zmailer.conf ie:
> 
> MAILMAN_ROOT=/usr/local/mailman
> 
> Using this means that you wont have to update zmailers databases if/when
> you add/remove a Mailman list..
> 
> 498a499,571
> > ###################
> > #
> > # START mailman integration
> > #
> > ###################
> > 
> > if [ -n "$MAILMAN_ROOT" ] ; then
> > 
> > 	a="$MAILMAN_ROOT/lists/$lcuser/"
> > 	if [ -d "$a" ] ; then
> > 		nattr=$(newattribute $attr privilege "0")
> > 		$(zapDSNnotify $nattr delivered "$sender" "$lcuser$domain")
> > 		a=(((local pipe.$lcuser "|$MAILMAN_ROOT/mail/mailman post $lcuser" $nattr)))
> > 		postzapDSNnotify a +
> > 		return $a
> > 	fi
> > 
> > 	ssift "$lcuser" in
> > 
> > 	(.+)-owner
> > 		listbase="\1"
> > 		mailman_todo="owner"
> > 		;;
> > 	(.+)-admin
> > 		listbase="\1"
> > 		mailman_todo="admin"
> > 		;;
> > 	(.+)-bounces
> > 		listbase="\1"
> > 		mailman_todo="bounces"
> > 		;;
> > 	(.+)-confirm
> > 		listbase="\1"
> > 		mailman_todo="confirm"
> > 		;;
> > 	(.+)-join
> > 		listbase="\1"
> > 		mailman_todo="join"
> > 		;;
> > 	(.+)-leave
> > 		listbase="\1"
> > 		mailman_todo="leave"
> > 		;;
> > 	(.+)-request
> > 		listbase="\1"
> > 		mailman_todo="request"
> > 		;;
> > 	(.+)-subscribe
> > 		listbase="\1"
> > 		mailman_todo="subscribe"
> > 		;;
> > 	(.+)-unsubscribe
> > 		listbase="\1"
> > 		mailman_todo="unsubscribe"
> > 		;;
> > 
> > 	tfiss
> > 
> > 	if [ -n "$listbase" ] ; then 
> > 		nattr=$(newattribute $attr privilege "0")
> > 		$(zapDSNnotify $nattr delivered "$sender" "$lcuser$domain")
> > 		a=(((local pipe.$lcuser "|$MAILMAN_ROOT/mail/mailman $mailman_todo $listbase" $nattr)))
> > 		postzapDSNnotify a +
> > 		return $a
> > 	fi
> > 
> > fi
> > 
> > ###################
> > #
> > # END mailman integration
> > #
> > ###################
-- 
Jeff Warnica <jeffw@chebucto.ns.ca>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi