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

Re: Mailman / zmailer integration



On Fri, Nov 21, 2003 at 01:59:32AM +0100, Xose Vazquez Perez wrote:
> here goes against latest cvs release. And with comments.

  I wonder what else I have forgotten..  Ah well, time to read
  archives...   But important was to get the baseline out, even
  though it clearly needs a patch collection for known bugs.
  (As the baseline stands, only Linux systems can do  ROUTERDIRHASH=1
   and work successfully.  With CVS-contained patches Solaris
   works, too.  And systems not working will barf loudly.)

  These various algorithm sequences we now do by editing the
  aliases.cf  file should really be similar 'protocols' mechanism,
  as is used for routing.  I have fumbled at it long ago, but
  never got around to finish it; see  proto/cf/aliases-new.cf.
  Like there are  p-*.cf and i-*.cf files, something similar
  should exist for localprotocols, too:  lp-*.cf  and li-*.cf ?

> -- 
> HTML mails are going to trash automagically

  /Matti Aarnio


> --- zmailer/proto/cf/aliases.cf	Tue Nov 18 04:35:25 2003
> +++ new/proto/cf/aliases.cf	Fri Nov 21 01:46:50 2003
> @@ -529,6 +529,78 @@
>  		;;
>  	tfiss
>  
> +#
> +# START mailman integration
> +#
> +
> +# You need to define the MAILMAN_ROOT variable in zmailer.conf
> +# Something like: MAILMAN_ROOT=/var/mailman
> +
> +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
> +#
>  
>  # Define something like following in your  zmailer.conf  file to enable this !
>  #	LISTSERV="/v/net/listserv.funet.fi"
> 


-- 
/Matti Aarnio	<mea@nic.funet.fi>
FUNET:  Finnish Academic and Research Network
	Network Information/Software Archival Service
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi