Re: Interaction of encoded-character extension with variables extension
Kjetil Torgrim Homme <kjetilho@ifi.uio.no> Fri, 21 December 2007 13:39 UTC
Return-path: <owner-ietf-mta-filters@mail.imc.org>
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1J5i6I-00038q-UK for sieve-archive-Aet6aiqu@lists.ietf.org; Fri, 21 Dec 2007 08:39:42 -0500
Received: from balder-227.proper.com ([192.245.12.227]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1J5i6I-0007kI-Do for sieve-archive-Aet6aiqu@lists.ietf.org; Fri, 21 Dec 2007 08:39:42 -0500
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lBLDSrA1030012 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Dec 2007 06:28:53 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lBLDSrEg030011; Fri, 21 Dec 2007 06:28:53 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from pat.uio.no (pat.uio.no [129.240.10.15]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lBLDSpdt030000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-mta-filters@imc.org>; Fri, 21 Dec 2007 06:28:52 -0700 (MST) (envelope-from kjetilho@ifi.uio.no)
Received: from mail-mx9.uio.no ([129.240.10.39]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from <kjetilho@ifi.uio.no>) id 1J5hvi-0006RH-Cm; Fri, 21 Dec 2007 14:28:46 +0100
Received: from smtp.uio.no ([129.240.10.9] helo=mail-mx9.uio.no) by mail-mx9.uio.no with esmtp (Exim 4.67) (envelope-from <kjetilho@ifi.uio.no>) id 1J5hvh-0004OQ-Ot; Fri, 21 Dec 2007 14:28:46 +0100
Received: from pat-gw.osl.fast.no ([217.144.235.5] helo=[192.168.2.10]) by mail-mx9.uio.no with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from <kjetilho@ifi.uio.no>) id 1J5hvh-0004O4-ER; Fri, 21 Dec 2007 14:28:45 +0100
Subject: Re: Interaction of encoded-character extension with variables extension
From: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
To: Stephan Bosch <stephan@rename-it.nl>
Cc: SIEVE <ietf-mta-filters@imc.org>
In-Reply-To: <476B9BCD.80300@rename-it.nl>
References: <476B9BCD.80300@rename-it.nl>
Content-Type: text/plain
Date: Fri, 21 Dec 2007 14:30:07 +0100
Message-Id: <1198243807.7464.168.camel@oslhomkje>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
Content-Transfer-Encoding: 7bit
X-UiO-SPF-Received:
X-UiO-Resend: resent
X-UiO-SPF-Received:
X-UiO-ClamAV-Virus: No
X-UiO-Spam-info: not spam, SpamAssassin (score=0.1, required=5.0, autolearn=disabled, AWL=0.110)
X-UiO-Scanned: FF516720B3E9341D5252B6C4411DA7DEC6AD1E42
X-UiO-SPAM-Test: remote_host: 129.240.10.9 spam_score: 1 maxlevel 200 minaction 2 bait 0 mail/h: 713 total 5864189 max/h 8345 blacklist 0 greylist 0 ratelimit 0
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>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9ed51c9d1356100bce94f1ae4ec616a9
On Fri, 2007-12-21 at 11:56 +0100, Stephan Bosch wrote: > I am building a Sieve implementation and, while reading the new 3028bis > specification, I noticed the new encoded-character extension. Its > substitution syntax is somewhat similar to what the variables extension > defined ( i.e. ${....} ). I am currently working with > draft-ietf-sieve-3028bis-13 and draft-ietf-sieve-variables-08. Now I am > wondering how these extensions are supposed to work if both are active. > Niether specification mentions this possibility (variables-08 seems to > be pretty old already though). you're right, this is my mistake, I forgot to add text to variables. > One could define encoded-character substituion to be performed before > any variables substitution, making the variables substitution act upon > the result of the encoded character substitution. this was the WG consensus when it was discussed in November 2006. see the thread "Invalid syntax to cause runtime error in encoded-character" > Although this is (to my opinion) intuitively the most logical > implementation, I can imagine other options in which encoded character > and variables substituion is performed in parallel, making use of the > fact that both extensions use the same delimiters for marking a > substitution. This could make things more efficient, as only one pass is > needed to identify substitutions in the string. This makes the above > situation result in just "${foobar}" without further substitution. if you are worried about performance, you byte-compile the script during upload, and remove the encoded-characters then. > Note that I am not trying to revive any old discussion on this topic. I > would just like to know what your opion is on this issue and I am hoping > that you could make this more explicit in the specification. unfortunately, the variables draft is due to be published. I guess we'll have to leave it for the next version when/if it is progressed to Draft Standard. -- best wishes, Kjetil T.
- Interaction of encoded-character extension with v… Stephan Bosch
- Re: Interaction of encoded-character extension wi… Kjetil Torgrim Homme
- Re: Interaction of encoded-character extension wi… Tony Hansen