Re: [imapext] General Request for Assignment (imap-keywords) (was: [JMAP] SMIME Attachments)

Alexey Melnikov <alexey.melnikov@isode.com> Wed, 15 November 2017 02:55 UTC

Return-Path: <alexey.melnikov@isode.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0C02129443 for <imapext@ietfa.amsl.com>; Tue, 14 Nov 2017 18:55:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 72FbWqbCQAyb for <imapext@ietfa.amsl.com>; Tue, 14 Nov 2017 18:55:16 -0800 (PST)
Received: from statler.isode.com (Statler.isode.com [62.232.206.189]) by ietfa.amsl.com (Postfix) with ESMTP id 259971294A6 for <imapext@ietf.org>; Tue, 14 Nov 2017 18:55:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1510714514; d=isode.com; s=june2016; i=@isode.com; bh=J3aq1xFZzJsq7FyDXr9N37J5XNnLf5ZlZL71RhmkEaQ=; 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=H4o9RqwkhdkbXp8xJQlbXR/wfVrJfAB2HQ4YPxUAKk+iOK33x2cBJbNZuEuaAwZxdt7rhg 9O33yopB6vkt4fPFSuXM+v8f38+0n5yEmuZ36urlp1mb/rRluljGLhWRuo16+GRUYynMaG r1ktR+umDc1yLAyFa6rnyR+ESB6wLxI=;
Received: from [31.133.129.3] (dhcp-8103.meeting.ietf.org [31.133.129.3]) by statler.isode.com (submission channel) via TCP with ESMTPSA id <WguskAAUZSFx@statler.isode.com>; Wed, 15 Nov 2017 02:55:13 +0000
To: Barry Leiba <barryleiba@computer.org>, vaibhav singh <vaibhavsinghacads@gmail.com>
References: <CACZ1GipM4+91KL00_YDcUHSF0eVnjh8vZAddbk869O4J1w9ZfA@mail.gmail.com> <CAC4RtVC42R+cpudekbXKvOk5PAjvQ=qSQ2drDYHiPOcTcOFkkQ@mail.gmail.com>
Cc: "imapext@ietf.org" <imapext@ietf.org>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <5A0BAC8D.8040308@isode.com>
Date: Wed, 15 Nov 2017 10:55:09 +0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To: <CAC4RtVC42R+cpudekbXKvOk5PAjvQ=qSQ2drDYHiPOcTcOFkkQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/wA4l7F8ionsZdk6L-9aG5HC9RW8>
Subject: Re: [imapext] General Request for Assignment (imap-keywords) (was: [JMAP] SMIME Attachments)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 02:55:20 -0000

On 15/11/2017 10:43, Barry Leiba wrote:
> Vaibhav left off one significant bit of my review:
> 
> 4.  ...the term “attachment” is a bit odd in today’s usage.  Messages
> may have multiple parts.  Whether some or all of those parts appear to
> the user as “attachments” depends upon the rendering.  For example, a
> two-part message that is multipart/alternative... is there an
> “attachment”?  How about a single-part message that is image/jpeg,
> with no text at all?  What about if I forward a message and the
> forwarded message is included as a separate message/rfc822 part rather
> than being included in the main text?

I think "Content-Disposition: attachment" is a good indicator of whether
something is an "attachment". In absence of Content-Disposition any
decision is an heuristic.

> Barry
> 
> 
> On Mon, Nov 13, 2017 at 11:10 PM, vaibhav singh
> <vaibhavsinghacads@gmail.com> wrote:
>> Hello,
>>
>> In order to optimize the way attachments inside encrypted mail are treated
>> by the MUA, I am suggesting the registration of a "$HasEncryptedAttachment"
>> to the IMAP Keywords registry[RFC5788].
>>
>> Please find details of the original proposal below:
>>
>>> Type of Assignment:
>>>  Requesting for addition of a keyword "$HasEncryptedAttachment" to the
>>> IMAP Keywords registry[RFC5788].
>>>
>>> Registry:
>>> The registration request is being made for IMAP Keywords
>>> registry[RFC5788].
>>>
>>> Description:
>>>     This flag can be useful so that the MUA can display an attachment
>>> icon when displaying
>>>    messages in the folder, without it having to decrypt the message.
>>> This flag can also be used to filter
>>>    encrypted emails with attachments.
>>>
>>> Additional Info:
>>>  The $HasEncryptedAttachment IMAP keyword will be used by IMAP/JMAP
>>> MUA to
>>>    specify that the marked encrypted message contains an attachment.
>>> A MUA-with-keys
>>>    sets this keyword when it sees a message having an attachment
>>> before encryption.
>>>     This flag can be useful so that the MUA can display an attachment
>>> icon when displaying
>>>    messages in the folder, without it having to decrypt the message.
>>> This flag can also be used to filter
>>>    encrypted emails with attachments.
>>>
>>> Once set, any entity (be it the MDA or receiver's MUA) SHOULD not edit
>>> the flag.
>>>
>>> JMAP Message Stores SHOULD be able to store the
>>> $HasEncryptedAttachment keyword.
>>> They MUST preserve it on the COPY operation.  The servers MUST
>>> support the SEARCH KEYWORD $HasEncryptedAttachment.
>>
>> Please find comments by Mr. Barry Leiba, and my answers below (marked as
>> <vs>):
>>
>> 1.) There should also be a “has no attachment” keyword, so the MUA doesn’t
>> have to check either way and only needs to check if neither is set.
>>
>>  <vs>  Agreed. </vs>
>>
>> 2.) The keyword is poorly named: it’s not about an encrypted attachment, but
>> about any attachment.  I suppose that in the end there no reason to mention
>> encryption at all, because it could be used for any message, though it’s
>> less important for unencrypted ones.
>>
>>  <vs> Not really sure. </vs>
>>
>> 3.) How will the server know to set the keyword?  The server also can’t
>> decrypt an incoming message, and so it can’t check.  Where does the
>> knowledge come from?  It seems that it could only work for messages that are
>> created locally, with the keyword set at creation.
>>
>>   <vs> A better use case for the flag could be: the server could set this
>> flag to true when it sees the mime being decrypted the first time, so that
>> any scans later on would not have to decrypt the mail again to know the
>> presence of the attachment inside it </vs>
>>
>> Will this be useful?
>>
>> --
>>
>> Regards,
>> Vaibhav Singh
>>
>> _______________________________________________
>> imapext mailing list
>> imapext@ietf.org
>> https://www.ietf.org/mailman/listinfo/imapext
>>
> 
> _______________________________________________
> imapext mailing list
> imapext@ietf.org
> https://www.ietf.org/mailman/listinfo/imapext
>