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

Re: alias expansion problem



On Mon, Sep 18, 2000 at 01:12:00PM -0400, Ambrose Li wrote:
> Hi,
> 
> after upgrading to ZMailer 2.99.53, I found that foo-group
> type of aliases has been doubly-expanded. For example, if
> the foo group contains user1, user2, user3, foo-group is now
> expanded to user1, user2, user3, user1, user2, user3.
> 
> Does anyone recognize this problem? (It is probably something
> to do with the configuration file changes that I haven't
> changed.)

	Oddly I see it at year-old 2.99.52-pre3  as well.

	Hmm... But the system I have is misbehaving and not
	able to read the  scheduler.conf  file for some reason..
	(Oh DAMN!  ok, my fault of running RedHat rawhide ...
	 Smells like gcc 2.96 is buggy at i386 ... plus glibc 2.1.92-nn
	 headers are suspect.)

	Ah, missing quotes in  aliases.cf :

        (.*)-group
                a="$(groupmembers "\1")" &&
                  db add expansions "$key" list &&
                  return $(echo $a |
                           listaddresses -e postmaster -c "$lcuser expansion" |
                           maprrouter $(newattribute $attr sender postmaster) \
                                "$lcuser" "$host" "$plustail" "$domain")
                ;;

	Change that `` echo $a ''  to be  `` echo "$a" ''  and you are
	not getting extra dupication of tail-tokens.

	You may still get other alias expansions, but not spurious ones.

> Thanks,
> -- 
> Ambrose Li                 <acli@mingpaoxpress.com>

-- 
/Matti Aarnio	<mea@nic.funet.fi>