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

"Aaron Stone" <aaron@serendipity.cx> Thu, 25 August 2005 15:30 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 j7PFUG4t020874; Thu, 25 Aug 2005 08:30:16 -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 j7PFUGHl020873; Thu, 25 Aug 2005 08:30:16 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from lucite.serendipity.cx (IDENT:mjxnalx4fsoy2lv1b7r8@serendipity.palo-alto.ca.us [66.92.2.87]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j7PFUGPu020867 for <ietf-mta-filters@imc.org>; Thu, 25 Aug 2005 08:30:16 -0700 (PDT) (envelope-from aaron@serendipity.cx)
Received: by lucite.serendipity.cx (Postfix, from userid 1003) id C57FE60A4D1C; Thu, 25 Aug 2005 08:30:11 -0700 (PDT)
Received: from serendipity.palo-alto.ca.us (localhost [127.0.0.1]) by lucite.serendipity.cx (Postfix) with SMTP id 1C9C760A4D1A; Thu, 25 Aug 2005 08:30:05 -0700 (PDT)
Date: Thu, 25 Aug 2005 15:30:05 -0000
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>, Aaron Stone <aaron@serendipity.cx>
Subject: Re: I-D ACTION:draft-daboo-sieve-include-03.txt (fwd)
From: Aaron Stone <aaron@serendipity.cx>
X-Mailer: TWIG 2.8.2
Message-ID: <twig.1124983804.70370@serendipity.palo-alto.ca.us>
In-Reply-To: <1124983003.15136.43.camel@chico.njus.no>
References: <twig.1124935195.17323@serendipity.palo-alto.ca.us>, <twig.1124935195.17323@serendipity.palo-alto.ca.us>
Cc: Cyrus Daboo <daboo@isamet.com>, Sieve Mailing List <ietf-mta-filters@imc.org>
X-DSPAM-Result: Innocent
X-DSPAM-Confidence: 0.6000
X-DSPAM-Probability: 0.0023
X-DSPAM-Signature: !DSPAM:430de403172806022819887!
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>

On Thu, Aug 25, 2005, Kjetil Torgrim Homme <kjetilho@ifi.uio.no> said:

> On Thu, 2005-08-25 at 01:59 +0000, Aaron Stone wrote:
>> According to the changelog in the ietf-variables-06 draft, a clarification
>> was made that variables do span includes. I could not find where this was
>> specified in the document, however. It sounds like the open issue is being
>> left to the include draft to resolve ;-)
> 
> this is the text which was added:
> 
> "All variables have global scope: they are visible until processing
> stops."
> 
> I find this sufficiently clear to answer "yes" to all three of Cyrus'
> questions, but then I wrote it :-)

I wouldn't have gotten that on my own in a million years, neither in
implementing a Sieve interpreter nor in writing my own scripts. 

>> Applying a PHP-ish model, each file would have a totally clean namespace.
>> If you wanted a variable to cross both namespaces, you would declare it
>> Global. In the ietf-variables-06 draft, section 4.1, gives a list of
>> modifiers. How about a :global modifier?
> 
> that would be a no-op, but a :local modifier is definitely possible if
> needed.

It would only be a no-op if the default namespace is the global namespace
;-) Unless you guys are already deeply along the path of a single
namespace, I believe a per-file namespace is less likely to cause
confusing results.

A :local modifier would do the trick. The text in the drafts should be
more explicit about there being a single global namespace for all scripts.

The very presence of a :global and/or :local modifier makes for an
explanation that will clarify things for implementors and end users alike.
On this point, what do folks think?

Aaron