Re: refuse-reject SMTP multi-lines replies
Alexey Melnikov <alexey.melnikov@isode.com> Tue, 08 April 2008 11:29 UTC
Return-Path: <owner-ietf-mta-filters@mail.imc.org>
X-Original-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Delivered-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 55A3A28C23A for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Tue, 8 Apr 2008 04:29:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.667
X-Spam-Level:
X-Spam-Status: No, score=-1.667 tagged_above=-999 required=5 tests=[AWL=-0.764, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, MIME_QP_LONG_LINE=1.396]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8BL9Rulh4m4J for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Tue, 8 Apr 2008 04:29:10 -0700 (PDT)
Received: from balder-227.proper.com (unknown [IPv6:2001:470:1f04:392::2]) by core3.amsl.com (Postfix) with ESMTP id 2FF383A68B6 for <sieve-archive-Aet6aiqu@ietf.org>; Tue, 8 Apr 2008 04:29:09 -0700 (PDT)
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id m38BHRPD018366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Apr 2008 04:17:27 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.14.2/8.13.5/Submit) id m38BHRXX018365; Tue, 8 Apr 2008 04:17:27 -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 rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id m38BHPti018357 for <ietf-mta-filters@imc.org>; Tue, 8 Apr 2008 04:17:26 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250]) by rufus.isode.com (submission channel) via TCP with ESMTPA id <R=tURAAMIiex@rufus.isode.com>; Tue, 8 Apr 2008 12:17:24 +0100
Message-ID: <47FB3083.7080806@isode.com>
Date: Tue, 08 Apr 2008 09:44:51 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Дилян Палаузов <Dilyan.Palauzov@aegee.org>
CC: IETF Sieve WG <ietf-mta-filters@imc.org>
Subject: Re: refuse-reject SMTP multi-lines replies
References: <47F9223F.9090107@aegee.org>
In-Reply-To: <47F9223F.9090107@aegee.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-transfer-encoding: quoted-printable
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>
Дилян Палаузов wrote: > Hi all, Hi Дилян, > Section 2.1.2 of draft-ietf-sieve-refuse-reject-06 speaks about how to > not-accpept a message (Action ereject, Rejecting a message at the > SMTP/LMTP protocol level). > > It might happen, that the ereject's parameter is longer than 512 > characters, or it can be multilined (e.g > ereject "First line > second line"; > ). The line terminators within the script are not necessary CR and LF, > it can be only CR or only LF. (at least cyrus' timsieved allows only LF). RFC 5228 only allows for CRLF as end-of-line markers, so this document shouldn't care about bare CRs or bare LFs used in scripts. > Do you think it is appropriate to specify in the draft, when it comes > to SMTP, one of: > > - If the ejerect's parameter consists of several lines, that lines > are merged into one single line. This line is split in portions of > about 500 characters (the number comes from RFC 2821, Section 4.5.3.1, > "reply line"; subtracting from 512 the length of "250"/"550" code and > the lengtt of enhanced status codes), when possible no word is > hyphenated. Each portion of the so created string-list is returned on > a separate smtp line in a multi-line SMPT reply; > > - (If the ereject's parameter consists of several lines, the line > separators are replaced with CRLF.?) As per RFC 5228, this statement is not needed. > The SMTP makes multi-line reply, giving every line of the > reason-parameter on as a separate line in the SMTP dialog. (this > leaves unhandled the case, when a single line is longer than 512); > > - If the ereject's parameter is longer than 500 characters, it is > truncated to 500 characters. Personally, I don't like the 3rd choice. I would prefer to do a hybrid of your proposal 1 and proposal 2: try to preserve existing CRLFs in the text, but insert additional ones, if any single line is longer than 500 characters. > Of course with the usual sense of "Shall/Must/Might/" etc. My > question is more if the draft shall deal with very-long-multi-lined > ereject-parameters, than what to do exactly.
- refuse-reject SMTP multi-lines replies Дилян Палаузов
- Re: refuse-reject SMTP multi-lines replies Alexey Melnikov