Sieve Attributes in Accounts Dataset

Randall Gellens <randy@Qualcomm.Com> Tue, 19 May 1998 23:21 UTC

Received: (from majordomo@localhost) by mail.proper.com (8.8.8/8.7.3) id QAA06566 for ietf-mta-filters-bks; Tue, 19 May 1998 16:21:02 -0700 (PDT)
Received: from fezik.qualcomm.com (fezik.qualcomm.com [129.46.2.74]) by mail.proper.com (8.8.8/8.7.3) with ESMTP id QAA06562 for <ietf-mta-filters@imc.org>; Tue, 19 May 1998 16:21:01 -0700 (PDT)
Received: from [129.46.136.131] (randy-mac.qualcomm.com [129.46.136.131]) by fezik.qualcomm.com (8.8.5/1.4/8.7.2/1.14) with ESMTP id QAA07762; Tue, 19 May 1998 16:24:32 -0700 (PDT)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Message-Id: <v04100a17b187c17d0a9a@[129.46.136.131]>
In-Reply-To: <emacs-488-13666-2137-99992@monopoly.andrew.cmu.edu>
X-Mailer: QUALCOMM Eudora Pro v4.1 for Macintosh
Date: Tue, 19 May 1998 16:19:21 -0700
To: MTA Filters List <ietf-mta-filters@imc.org>, ietf-acap@andrew.cmu.edu
From: Randall Gellens <randy@Qualcomm.Com>
Subject: Sieve Attributes in Accounts Dataset
Sender: owner-ietf-mta-filters@imc.org
Precedence: bulk

draft-gellens-acap-acnt-00 proposed a "Sieve.Script" attribute in the
Accounts dataset, to contain the Sieve script to be executed against
incoming mail for an account.

I'd like to add optional magic attributes for determining syntax
warnings and errors.  If the server advertises the "Sieve" capability,
it supports the magic attributes.

I'm thinking of four such attributes, one each for the count and text
of syntax warnings and errors.

So, the Sieve-related attributes in \Account would be:

Account.Sieve.Script
Account.Sieve.Syntax.Warnings
Account.Sieve.Syntax.Errors
Account.Sieve.Syntax.WarnText
Account.Sieve.Syntax.ErrText

Does anyone think it would be better to instead make a Sieve subdataset
in the Account dataset?

The Warnings and Errors attributes would be numbers.  The WarnText and
ErrText attributes would be text strings, with a special format.  I'm
thinking of:

"line: <line number>; offset: <offset>; text: <text>"

For example:

"line: 3; offset: 8; text: semicolon expected"

This would make it easy for a UI to display errors and warnings nicely,
and would be expandable (although the text would have to be last,
unless it was quoted, which would make it more complicated).

Comments?