Re: I-D ACTION:draft-daboo-sieve-include-03.txt (fwd)

"Nigel Swinson" <Nigel.Swinson@rockliffe.com> Fri, 26 August 2005 13:44 UTC

Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j7QDi1ZD097061; Fri, 26 Aug 2005 06:44:01 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j7QDi1oj097060; Fri, 26 Aug 2005 06:44:01 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rockpub3.rockliffe.com (rockpub3.rockliffe.com [147.208.128.12]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j7QDi1xV097023 for <ietf-mta-filters@imc.org>; Fri, 26 Aug 2005 06:44:01 -0700 (PDT) (envelope-from Nigel.Swinson@rockliffe.com)
X-Spam-Score: 1
Received: from nigelhome (unverified [10.42.40.210]) by rockliffe.com (Rockliffe SMTPRA 6.3.21) with ESMTP id <B0000261786@mail.rockliffe.com>; Fri, 26 Aug 2005 06:43:55 -0700
Message-ID: <005c01c5aa44$49f18430$cf0ac050@nigelhome>
From: Nigel Swinson <Nigel.Swinson@rockliffe.com>
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>, Aaron Stone <aaron@serendipity.cx>
Cc: Sieve Mailing List <ietf-mta-filters@imc.org>
References: <twig.1125014327.8763@serendipity.palo-alto.ca.us> , <twig.1125014327.8763@serendipity.palo-alto.ca.us> <twig.1125020754.94965@serendipity.palo-alto.ca.us> <1125054534.15136.180.camel@chico.njus.no>
Subject: Re: I-D ACTION:draft-daboo-sieve-include-03.txt (fwd)
Date: Fri, 26 Aug 2005 14:44:29 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id j7QDi1xV097054
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> I don't think we need ":global", and it would be confusing to use.

I consider PHP a very mature scripting language and I consider thier scoping rules very well thought out most likely very carefully discussed.  After using the language for several years I haven't really found fault with them.  It make me think it's worth copying what they have done.  And thus:

I think Aaron and I are suggesting:

Set file scope variable
    set "var" "Hello Kitty";

Set global scope variable, where global affects all scripts that come into existance with the include spec
    set :global "var" "Hello Kitty";

Set local scope variable, where local affects the current and nested command block (filescope if not currently in a control block.)  (would doubt would ever be used)
    set :local "var" "Hello Kitty";

And Kjetil seems to disagree.  Anybody else out there have any opinions?

Nigel