Re: draft-elvey-refuse-sieve-02.txt (multi-reply)

Kjetil Torgrim Homme <kjetilho@ifi.uio.no> Thu, 12 August 2004 09:46 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 i7C9kZ2x015611; Thu, 12 Aug 2004 02:46:36 -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 i7C9kZQF015610; Thu, 12 Aug 2004 02:46:35 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from pat.uio.no (IDENT:7411@pat.uio.no [129.240.130.16]) by above.proper.com (8.12.11/8.12.9) with ESMTP id i7C9kZj1015587 for <ietf-mta-filters@imc.org>; Thu, 12 Aug 2004 02:46:35 -0700 (PDT) (envelope-from kjetilho@ifi.uio.no)
Received: from mail-mx2.uio.no ([129.240.10.30]) by pat.uio.no with esmtp (Exim 4.34) id 1BvCAK-00064x-Qd; Thu, 12 Aug 2004 11:46:32 +0200
Received: from rovereto.ifi.uio.no ([129.240.68.185]) by smtp.uio.no with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1BvC9C-0001L5-Ta; Thu, 12 Aug 2004 11:45:22 +0200
Subject: Re: draft-elvey-refuse-sieve-02.txt (multi-reply)
From: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
To: Matthew Elvey <matthew@elvey.com>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <411AABFC.7080508@elvey.com>
References: <41186140.2010708@elvey.com> <EACA30731845B29364DE4D95@plato.cyrusoft.com> <411915C4.70406@elvey.com> <CD470B9182495A90577DABAE@ninevah.cyrusoft.com> <59E96938-EB0A-11D8-852C-000A95AF6E0A@sun.com> <411AABFC.7080508@elvey.com>
Content-Type: text/plain
Date: Thu, 12 Aug 2004 11:45:18 +0200
Message-Id: <1092303918.16642.44.camel@rovereto.ifi.uio.no>
Mime-Version: 1.0
X-Mailer: Evolution 1.5.92
Content-Transfer-Encoding: 7bit
X-MailScanner-Information: This message has been scanned for viruses/spam. Contact postmaster@uio.no if you have questions about this scanning
X-UiO-MailScanner: No virus found
X-UiO-Spam-info: not spam, SpamAssassin (score=-5, required 12, UIO_MAIL_IS_INTERNAL -5.00)
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 Wed, 2004-08-11 at 16:30 -0700, Matthew Elvey wrote:
> On 8/10/2004 4:30 PM, Kjetil Torgrim Homme sent forth electrons to convey:
> > I think this draft doesn't go far enough: it should state the rules for
> > running a Sieve script before the message is accepted. it can be kept
> > quite simple: a Sieve script can be run after RCPT TO, but only "stop"
> > and "refuse" are acted on. tests against headers before DATA will
> > likewise fail. there is no implicit keep.
> 
> This is out of scope.  An extension allowing sieve scripts to run early 
> in the SMTP conversation may well be a good idea, however.

I don't agree, since I can't think of any other actions than "refuse"
which make any sense before DATA.

> Normally, Sieve should (BCP) run after the end-of-data (CRLF.CRLF) has 
> been sent, but not acknowledged.
> 
> My sieve script would do all sorts of crazy things under the scheme 
> suggested.   I'd probably have to very carefully debug it, e.g.  |not 
> header ||:||contains ||"Subject"... would always trigger?...
> |

I don't quite understand your example, but I don't think it is a problem
according to the set of rules I quickly outlined.  think of "stop" as
"accept", "refuse" as, well, "refuse", and every other action as "no-
op".  default behaviour (when the execution of the script reaches the
end of file) is "accept".

it may be worth noting that an MTA can compile a script into two forms,
one for running after RCPT TO, one for after DATA.  a very simple
optimisation is to transform any script which isn't using both the
"refuse" and the "envelope" extensions into simply "stop" (or "accept",
if you will).

-- 
Kjetil T.