Re: [exim] Fearure that Exim should have

2007-12-10 Thread Eli Sand
IMO the ACL section of exim has sort of evolved into a type of programming language. With that said, what you have stated reminds me of some programming techniques that are quite bad. That is passing data to routines using global variables. You stated this way of programming (Or

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Graeme Fowler
On Sun, 2007-12-09 at 19:33 -0800, Marc Perkel wrote: How about it Graeme? You're pretty good that this. I could make the same request of you, Marc. Why not? Graeme -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Marc Perkel
Graeme Fowler wrote: On Sun, 2007-12-09 at 19:33 -0800, Marc Perkel wrote: How about it Graeme? You're pretty good that this. I could make the same request of you, Marc. Why not? Graeme Seems to me like it would be easy to add. You just have to pick some internal variable

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Ted Cooper
Or perhaps I've smoked something I shouldn't have and I'm confusing simple matters (wouldn't be a first)? This is more a response to the whole thread rather than just you Eli :) If something so simple as ACLs need to have enough parameters passed to them that people start thinking it's too

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Stephen Gran
On Mon, Dec 10, 2007 at 06:38:38AM -0800, Marc Perkel said: Seems to me like it would be easy to add. You're under the impression that introducing and enforcing scopes and namespaces is easy? It's certainly not the end of the world, but I don't think it quite qualifies as easy. --

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Wakko Warner
Eli Sand wrote: warnacl=some_acl($var1, $var2) or keeping with the exim sense: acl=some_acl{$var1}{$var2} I figured that would be what a lot of people would think it'd end up looking like, however where did you get $var1 and $var2 from to pass to the acl?

Re: [exim] Fearure that Exim should have

2007-12-10 Thread Wakko Warner
Ted Cooper wrote: If something so simple as ACLs need to have enough parameters passed to them that people start thinking it's too confusing to understand, and they they are polluting the global namespace, then I think those people need to change their thinking just a little bit and examine

Re: [exim] Fearure that Exim should have

2007-12-09 Thread Wakko Warner
Eli Sand wrote: I seem to recall wanting this same functionality myself. I am currently using acl variables, but I believe it would look much better if the parameters could be passed in another way. This was written before there were named acl variables (back when there was just 0-9).

[exim] Fearure that Exim should have

2007-12-07 Thread Marc Perkel
It would be nice if we could pass parameters to ACLs. Parameters would be accessible in standard names like acl_param1 acl_param2 ... acl = my_acl test my_acl warn logwrite = acl_param1 -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at

Re: [exim] Fearure that Exim should have

2007-12-07 Thread Eli Sand
It would be nice if we could pass parameters to ACLs. Parameters would be accessible in standard names like acl_param1 acl_param2 ... acl = my_acl test my_acl warn logwrite = acl_param1 You're kidding, right? Why don't you just use acl variables that already exist? Don't have enough?

Re: [exim] Fearure that Exim should have

2007-12-07 Thread Eli Sand
I seem to recall wanting this same functionality myself. I am currently using acl variables, but I believe it would look much better if the parameters could be passed in another way. This was written before there were named acl variables (back when there was just 0-9). Personally I don't

Re: [exim] Fearure that Exim should have

2007-12-07 Thread Wakko Warner
Eli Sand wrote: It would be nice if we could pass parameters to ACLs. Parameters would be accessible in standard names like acl_param1 acl_param2 ... acl = my_acl test my_acl warn logwrite = acl_param1 You're kidding, right? Why don't you just use acl variables that already