Re: [Extra] I-D Action: draft-ietf-extra-sieve-snooze-00.txt

Alexey Melnikov <alexey.melnikov@isode.com> Wed, 28 October 2020 10:22 UTC

Return-Path: <alexey.melnikov@isode.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 363143A07C3 for <extra@ietfa.amsl.com>; Wed, 28 Oct 2020 03:22:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.346
X-Spam-Level:
X-Spam-Status: No, score=-2.346 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.247, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kCrBxAv3a-xA for <extra@ietfa.amsl.com>; Wed, 28 Oct 2020 03:22:16 -0700 (PDT)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id 508483A067A for <extra@ietf.org>; Wed, 28 Oct 2020 03:22:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1603880535; d=isode.com; s=june2016; i=@isode.com; bh=fqbM+zac6xEBj2icv99emJHHIGusIej0KT4jju+n2qw=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=VAgvPcQYjX1OXOpXqK9OwW6ZrUkfsb4wFFo84fFrvqmsap3a8RMdMPNhpQksWrMeRxSKjg WhUIiatdorZca3bXc1uOeipOkQn+bZb+7apfC4sedfPWEfPmAxmoVL+9eDlUaqhS/tSJJ/ JVb/oz8BEee0FRauBwyQAXvvqZLWnOs=;
Received: from [192.168.0.5] (97e7601a.skybroadband.com [151.231.96.26]) by waldorf.isode.com (submission channel) via TCP with ESMTPSA id <X5lGVgAF1kvH@waldorf.isode.com>; Wed, 28 Oct 2020 10:22:15 +0000
To: Michael Peddemors <michael@linuxmagic.com>
References: <159705787314.11834.3190103463887221194@ietfa.amsl.com> <e247472a-0001-22c2-c6be-f09a9c5beaa4@open-xchange.com> <9772b986-260e-77da-1dea-4a1ae8010857@fastmail.com> <2411a867-d381-984e-fbd9-c6d7309cbab6@fastmail.com> <941ea682-1264-874d-096e-6654f8707ba7@isode.com> <21368546-3a7f-548b-3fc7-9a0a76419a96@linuxmagic.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: extra@ietf.org
Message-ID: <72cb4558-f983-7eff-7308-dd970052c643@isode.com>
Date: Wed, 28 Oct 2020 10:22:13 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1
In-Reply-To: <21368546-3a7f-548b-3fc7-9a0a76419a96@linuxmagic.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-GB
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/3hLqCr0_jkUapF6GAixoLOcWcF8>
Subject: Re: [Extra] I-D Action: draft-ietf-extra-sieve-snooze-00.txt
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Oct 2020 10:22:18 -0000

Hi Michael,

On 27/10/2020 17:45, Michael Peddemors wrote:
> If you don't mind a stupid question on this..
>
> The idea of a 'snooze' feature is something lot's of people are 
> working on, and maybe it should be a higher level than in 'sieve'?
>
> Maybe it would be helpful to set solicit feedback on other industry 
> implementations of this feature.. possibly this should be in IMAP itself?

IMHO, I think it depends on how and where the snooze functionality is 
invoked:

1) If it is a set of static rules, such as "snooze all messages between 
7am and 9am till 11am" or "snooze all messages from X till 3pm", then 
Sieve is absolutely the right place for this. Ken's draft doesn't 
mandate how this is done, but it has 2 reasonable suggestions (one using 
SMTP and one using IMAP).

2) if snooze is initiated by a user on ad-hoc basis through IMAP, then a 
separate mechanism would be needed.

Best Regards,

Alexey

> On 2020-10-27 10:36 a.m., Alexey Melnikov wrote:
>> Hi Ken,
>>
>> On 27/10/2020 14:00, Ken Murchison wrote:
>>>
>>> On 10/22/20 12:16 PM, Ken Murchison wrote:
>>>>
>>>> On 10/22/20 10:20 AM, Stephan Bosch wrote:
>>>>>
>>>>>
>>>>> On 10/08/2020 13:11, internet-drafts@ietf.org wrote:
>>>>>>
>>>>>> A New Internet-Draft is available from the on-line 
>>>>>> Internet-Drafts directories.
>>>>>> This draft is a work item of the Email mailstore and eXtensions 
>>>>>> To Revise or Amend WG of the IETF.
>>>>>>
>>>>>>          Title           : Sieve Email Filtering: Snooze Extension
>>>>>>          Authors         : Kenneth Murchison
>>>>>>                            Ricardo Signes
>>>>>>                            Neil Jenkins
>>>>>>     Filename        : draft-ietf-extra-sieve-snooze-00.txt
>>>>>>     Pages           : 12
>>>>>>     Date            : 2020-08-07
>>>>>>
>>>>>> Abstract:
>>>>>>     This document describes the "snooze" extension to the Sieve 
>>>>>> email
>>>>>>     filtering language.  The "snooze" extension gives Sieve the 
>>>>>> ability
>>>>>>     to postpone the filing of an incoming into a target mailbox 
>>>>>> until a
>>>>>>     later point in time.
>>>>>>
>>>>>>
>>>>>> The IETF datatracker status page for this draft is:
>>>>>> https://datatracker.ietf.org/doc/draft-ietf-extra-sieve-snooze/
>>>>>>
>>>>>> There are also htmlized versions available at:
>>>>>> https://tools.ietf.org/html/draft-ietf-extra-sieve-snooze-00
>>>>>> https://datatracker.ietf.org/doc/html/draft-ietf-extra-sieve-snooze-00 
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please note that it may take a couple of minutes from the time of 
>>>>>> submission
>>>>>> until the htmlized version and diff are available at tools.ietf.org.
>>>>>>
>>>>>> Internet-Drafts are also available by anonymous FTP at:
>>>>>> ftp://ftp.ietf.org/internet-drafts/
>>>>>
>>>>> I have one question about this:
>>>>>
>>>>> Why does this add a new command? Why can't it just extend both 
>>>>> keep and fileinto with new arguments?
>>>>
>>>>
>>>> Hi Stephan,
>>>>
>>>> I suppose we could extend these commands as we are really just 
>>>> delaying the keep/fileinto until a future (awaken) time.
>>>>
>>>> So, it could look something like:
>>>>
>>>> fileinto [:snooze <times: string-list> [:tzid <string>] [:weekdays 
>>>> <stringlist>]] <mailbox: string>
>>>>
>>>> If we don't like having multiple tagged arguments, we could use a 
>>>> single string with some kind of ISO or iCalendar recurrence rule, 
>>>> but that might be more restrictive (I haven't actually sat down and 
>>>> worked out various examples).
>>>>
>>>> The only issue would be whether we want/need flags to be set at 
>>>> snooze time and then set/unset again at awaken time, which the 
>>>> current spec allows.
>>>>
>>>> How do others feel about extending keep/fileinto vs. a new command?
>>  From the point of view of making sure that extensions work with each 
>> other, not multiplying number of commands is a good thing. But I can 
>> also see attraction for [manual] script writers for shorter/different 
>> commands.
>>> As I think about this more, and look at how :fcc became kind of a 
>>> mess with a bunch of add-on tagged args, I wonder if using a single 
>>> structured string for a :snooze option to keep/fileinto might be 
>>> better.  E.g.:
>>>
>>> keep :snooze text:
>>> {
>>>   "until": [ "08:00:00", "12:00:00" ],
>>>   "days": [ "1", "3", "5" ],
>>>   "tzid": "America/New_York",
>>>   "addflags": [ "\\\\Flagged" ],
>>>   "removeflags": [ "\\\\Seen" ]
>>> }
>>> .
>>> ;
>>>
>> This would mean that you have 2 levels of parsing: first you use a 
>> generic Sieve parser to parse a Sieve script and then you would have 
>> to selectively parse certain recognized parameters using a different 
>> parser. I think this would unnecessarily increase complexity for both 
>> implementors and script writers, because there are now special cases 
>> of syntax.
>>
>> Best Regards,
>>
>> Alexey
>>
>> _______________________________________________
>> Extra mailing list
>> Extra@ietf.org
>> https://www.ietf.org/mailman/listinfo/extra
>
>
>