
From nobody Mon Dec  6 08:06:20 2021
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: extra@ietf.org
Delivered-To: extra@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 7ED353A0B17; Mon,  6 Dec 2021 08:06:10 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 7.40.0
Auto-Submitted: auto-generated
Precedence: bulk
Cc: The IESG <iesg@ietf.org>, brong@fastmailteam.com, draft-ietf-extra-quota@ietf.org, extra-chairs@ietf.org, extra@ietf.org, rfc-editor@rfc-editor.org, superuser@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-ID: <163880677039.24985.15776731129836025135@ietfa.amsl.com>
Date: Mon, 06 Dec 2021 08:06:10 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/xU7rLvRTvU4hf4U5oeiSREEAbbo>
Subject: [Extra] Protocol Action: 'IMAP QUOTA Extension' to Proposed Standard (draft-ietf-extra-quota-10.txt)
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 06 Dec 2021 16:06:11 -0000

The IESG has approved the following document:
- 'IMAP QUOTA Extension'
  (draft-ietf-extra-quota-10.txt) as Proposed Standard

This document is the product of the Email mailstore and eXtensions To Revise
or Amend Working Group.

The IESG contact persons are Murray Kucherawy and Francesca Palombini.

A URL of this Internet Draft is:
https://datatracker.ietf.org/doc/draft-ietf-extra-quota/





Technical Summary

  This spec extends IMAP with additional commands (GETQUOTA, GETQUOTAROOT,
  SETQUOTA) and new STATUS attributes (DELETED and DELETED-STORAGE),
  allowing clients to determine how much space is used by an IMAP account
  and how much additional space might be available.

Working Group Summary

  There was no significant disagreement.  The main questions were around
  whether particular features were worth including, and whether the syntax
  was reliably parseable for OVERQUOTA responses that included tags (they
  were eventually removed as being un-necessary and ambiguous).

Document Quality

  This spec is quite easy to implement.  Most IMAP servers are already
  basically compatible because they have implemented RFC2087.

  There is a normative reference to an experimental RFC (RFC5257) however
  this specification was written in 2008 and is widely enough used that we
  should probably update it to a Proposed Standard as well.

Personnel

  Document Shepherd - Bron Gondwana (EXTRA co-chair)
  Responsible Area Director - Murray Kucherawy


From nobody Thu Dec 23 11:06:40 2021
Return-Path: <nvikram@yahooinc.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 7363D3A047D for <extra@ietfa.amsl.com>; Thu, 23 Dec 2021 11:06:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level: 
X-Spam-Status: No, score=-2.096 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahooinc.com header.b=tB1u0vli; dkim=pass (2048-bit key) header.d=yahooinc.com header.b=n6VOYD4a
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 WPxemQOS0oxS for <extra@ietfa.amsl.com>; Thu, 23 Dec 2021 11:06:31 -0800 (PST)
Received: from mx0b-00505701.pphosted.com (mx0b-00505701.pphosted.com [148.163.139.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D43373A043E for <extra@ietf.org>; Thu, 23 Dec 2021 11:06:31 -0800 (PST)
Received: from pps.filterd (m0212276.ppops.net [127.0.0.1]) by mx0b-00505701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BNA95WY005915 for <extra@ietf.org>; Thu, 23 Dec 2021 19:06:29 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahooinc.com; h=date : from : to : message-id : subject : mime-version : content-type : references; s=pps1; bh=PXNPGByAmiu0CqhOaXSy2hgOkfmDKgPctI2ro3rrw6M=; b=tB1u0vli5cMPZ2lEeGH6IoPBlX9x8RAbXcTTF/zCGEUYSU+gCECD8SMXO57h2fGClmiU 3uwL+4rvidwY+h1A2XNxX8E937t7BuL0Ulz0I//0PBLzd86kcsxjOxVoRo2/A/yG/oLR JruWIxSQC4FXXtkRlmoEMQ1OTzMRdllAKPHnAZvY+z/d30J86UcR/+U6Oj93jvV8fAbI NEx7bYWyjE4oBZknZmlmOuX3lx+agYjrpxLvZ35UJffoAhYIWsuNDqIskeVMpmBzF/e2 pdDscXNc2GcFsPZeAnEJsJHwXfQ6Rm3B90TLF3sRc3dQs+3n5ngzkpv9JdLiWcGdmDEN aQ== 
Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mx0b-00505701.pphosted.com (PPS) with ESMTPS id 3d3s4n5e58-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for <extra@ietf.org>; Thu, 23 Dec 2021 19:06:29 +0000
Received: by mail-qt1-f199.google.com with SMTP id n1-20020ac81e01000000b002c4701d8ec0so127955qtl.17 for <extra@ietf.org>; Thu, 23 Dec 2021 11:06:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahooinc.com; s=google; h=date:from:to:message-id:subject:mime-version:references; bh=PXNPGByAmiu0CqhOaXSy2hgOkfmDKgPctI2ro3rrw6M=; b=n6VOYD4a9TTXuENkDpxmBfqyXcyvbTC/iOh0DclHkXVzeHu9CDiBVwRNLBL/hXTwlR 1GMezCu8VZvS2kH39Gwpj/quy+CNkhkW52Wv52183vL6C6JnkZlOOLABi3fiyAtbzFE6 t0LQeo8B9ShSjq/2TnAbGuo/sZDE9YjL1iN5QHg+vfqfs47hDQTq77Oj9iwmWVq6kQFH wnYQDXsKzjRGFHaFvTQk2WPcAJawTEzbuI6QB2LPUbH4TWViNjRPeuL9s8/347QBMnp3 K5ix+0ssP5NUva3e2Resp5QCsHFFu9CiRR/iLFAh2FJGg/0S+seWETDEKZ7S8+aQxaJ2 8SNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:subject:mime-version :references; bh=PXNPGByAmiu0CqhOaXSy2hgOkfmDKgPctI2ro3rrw6M=; b=UPaq92zRpE+OkoVO+3is+UOvXH0CHOoBPXbltHZyN/gqQQJMKLdUXFnrH173e+XHvE 3l19Y842gMgrIatRJKEUgjhH2vJq20oJaFZM82iDBgZufKhvRnZBzMy5KyQ/7dPBgohd /yOpXaUaI8I66ZQdHJv02kroda+S51vIk2u2wUZ8IuEHYfwx7hxlpUMQ6BeiP81pALGc lja5yAuNLcsa3uoNS3CFBbdM+H3K8GJhMqD7I2AoE3DEBS0LqGndP5XTxz800RRORWof JsEev65ffdPzEKUy7VaChB9RxRb3FHO4nw6zZu6/ufC8Ees3n8g57Of0aag0UbupB5g+ VMtw==
X-Gm-Message-State: AOAM531avXJcegDLuy8nOq44FnITaujcvAqywscSuwLZHCW2mmUEUE2z Y73TpqnbfDHaVY+d/dGyfKY1KN1rAdqhqDydSz7eOk8VWptkQzY+sagYaadO3OlZ5gdG9Q4ZuhB ZKptOr9lqqt2VobnISGuEfne56iQtLLskc8lDfUwizAgW8r9BDSmza9lWRQ==
X-Received: by 2002:a05:620a:1587:: with SMTP id d7mr2405744qkk.126.1640286388741;  Thu, 23 Dec 2021 11:06:28 -0800 (PST)
X-Google-Smtp-Source: ABdhPJy/4ooJ7l6IKeHjl89pTxvmKXeKa1TNT6GyeTLBo7W817PgtnMPdToemdHcPi+EaMvgNKLzQQ==
X-Received: by 2002:a05:620a:1587:: with SMTP id d7mr2405712qkk.126.1640286388302;  Thu, 23 Dec 2021 11:06:28 -0800 (PST)
Received: from sonic306-21.consmr.mail.ne1.yahoo.com (sonic306-21.consmr.mail.ne1.yahoo.com. [66.163.189.83]) by smtp.gmail.com with ESMTPSA id v1sm4911255qtw.65.2021.12.23.11.06.27 for <extra@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Dec 2021 11:06:27 -0800 (PST)
X-YMail-OSG: vyXALToVM1ny5kjFUaL.9y0WsdsLD2GufE1l5OLZItyPBbhdpirAmsKosrGSuxG RlSfzzOQpACYZmpNUczdHHbV5gVNzTpl.0mEtRbp1Qpd70gNwcAlxZNyAGsyCo0cYi5rQCX2QmvH xrDzesBwT1NbVMqalO0CpXNDE2gZNG04r_NRnCHOzmm_YXsSwfaGk4NN8T36CLFRg3_6QnrgMU1B Z6_QpJET7TxZTBshV6LnGQqtz9iAPm0ZtXNll_Cqjei2sQF5OJjfEzdlZuKPMPOuhrhJvYKKiYV2 jK4yr3sqZmulBBo9n3N5jHa6VCxzehAf2zEJrpgg4mCBchcyW2VRyPaervjtfWdNDokW_wvj3QNF ZxF_vt7KhR7NLrdD2hoK2lTeOxafP5Na_Gdp4_uDGiEtF8Jp4rfobEnDv4oLHYCnsD8M3snLAXWo R7UDtrr77qx3wYOsF.E.wlAmkZ0HkjOKUhRQIrCGw9fdLt7PZl5XbT5bOUa9gp4nv65dBM49Rlnr EHd0FjCHOHKV2K6YU47zE4_UHMc6Nnpjh_ZnOH0HBH55T1EHOeOuCT70p7cEu4aDZhaxuWb5Lys_ Oq7duiKppWe6CeQ8j6JRXd4jZ8LIRCIoymeV_XY6VLggSe2T7h2W0jWZYfsZN3maCstBGjTdEJhL nUsF4ITxhmhiYsEws_Me2wn2LUHnc3jL0myiPf8gYLmf8D79yDW1wt4e0HC7Q60O4zy0grek9elU 1P1jORi.7idUUy5lY5_GjrrW2P6YXFH5Hh.3OIM_cZ0kpqrUgJxAxERco3KXo3KWSnKJ.lpGUGZT IuLE2WMe.ZxVsxePCbKxhwNe91A3h4YEJho_FV.Q0dkR.aOkoDHT8WeAr_s3Neoi5HngxmFbYKGF GtPHfhEMyHZS0uXs4rWzIqtnzflkA_0mi7fU.uGLh0I0GrBRuAWs_xDprJa02R0D60.hFAB6VXDk LEBdcuuI1JVvte.fABE7MxiBCfnrNrKHvKHWJOPOlDt6rR_mlhlFLHaDLgEgX5aTlXG4y7_13CsL JKHR1O_tvTFGwAIKzKgUswaTNyPRdsxpMwef.zF67I3rghKZ2E9UfouGaPnJDQfwpwGZ0K0A.767 8GYpfX4FvJhu81H_wlO3Ow5kTuoxyLUlYd_mzQ85a27PP1tZpGr973mPxyhXmva.nOQrVYrWwLjb .6e8JVRrgu.KLVsVOHRK9H0c6QpEvFu_6q3fWPQ7CRvvcgjb_XVpFt_s28uboUM.x5a3Ug9VBtX1 nzSGjV_D8XuDu304A4IkuOvYfYjz8yqXAatoTrsfC_Mvxb2TqWUabK2I6eHq4RaSRALAR55xFX7W f7JVGnJ3vUb13bgsHpdEfXS5jwqYGmuyVJU3qcFA01BjdHZiAvk_9fr2BOcNS6MYbLMUU48zt171 iYqHnYDgAPKPN_r2YkXPLC22awOUoAtJCyT0L5FdSxmEKImWkp.SNVTwmKaRszht0dLC.pVCOLi6 sUyxhx7B5i4OsU8bODEymeO4Gby_vLPX6P30JtBuzdLrL3KrppwFO026mdWRLifSwhVbihaK2Nk9 yHnGg20xfePdTytMrMPVYV5ZUlThDsmFI2ynjkZeZnEMbN4l.7eIlJnvQLfK6C81UNYtfCCl1dc8 MSy3QLfi2QpeFDRzRNPHsXk8UiZs8.h52aI3NN7mu6PseTKRXOz3WsI2lEfZa9GEsI.kcq01X9Hd QlqMf8f0pf.Bd8PnguOR7uectUH.ULi6JUSPmR9z.9sBVo3KzhoqZJNp43Zo5DQSydkYF9oGqCXi 0NxosB6_6bzwYnrAifDKBSx5Gj7M3SZ14jEzYaGU8aOk932qUgUyQdOAxweJYwsjRNh3IRymdq58 ezONDyBJXLVVG2gC1z3xueLRsZUlWCYAoyPJbRa9QmxIbfxxJI09ZIoKsWv6DoSlraNmZAxdMPLU F32sazohPQUjcCDpH31_SlWeDFTHPZiQXJgcADytkCkdLwTgIumbj5mrblnHYlaHLAZrsUHHxzuZ IMm2mUwS4PzLMey0HsOkgucgbXKfuy.m5ZhXsF2MYeZlOxCxhw84IUiP5_JKowlPIcW6e0VlI6Xr sybW_fGcI67uvEQ4bLpPVZwwjJXqyYiDttg5aIpNZoBIXK1wn2o_iWDQ0ZnGT6M1h583KBG3PEnf RAtCQtJoL_NCE1AqJn1cQnwvAdyCaXDUe7l25kYLVhmramEyiZqGPT7Tkdj1CqAqUow--
X-Sonic-MF: <nvikram@yahooinc.com>
Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Thu, 23 Dec 2021 19:06:27 +0000
Date: Thu, 23 Dec 2021 19:06:12 +0000 (UTC)
From: Vikram Nagulakonda <nvikram@yahooinc.com>
To: "extra@ietf.org" <extra@ietf.org>
Message-ID: <151800306.1712573.1640286372394@mail.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;  boundary="----=_Part_1712572_1061467611.1640286372393"
References: <151800306.1712573.1640286372394.ref@mail.yahoo.com>
X-Mailer: WebService/1.1.19498 YMailNorrin
X-Proofpoint-GUID: Cn7vTe7kVtEx0OokGJ6VOYyYa0SbIswV
X-Proofpoint-ORIG-GUID: Cn7vTe7kVtEx0OokGJ6VOYyYa0SbIswV
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-23_04,2021-12-22_01,2021-12-02_01
X-Proofpoint-Spam-Reason: orgsafe
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/dWKKnYP2klouJxl9Q_il6-1UpJc>
Subject: [Extra] Suggestions on IMAP PARTIAL response
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: Thu, 23 Dec 2021 19:06:39 -0000

------=_Part_1712572_1061467611.1640286372393
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi All
We are introducing MESSAGELIMIT capability and response code in IMAP PARTIAL RFC. IMAP PARTIAL RFC is enforcing message retrieval and update limits per imap request.

As per RFC, IMAP server will return NO with MESSAGELIMIT response code to clients using PARTIAL return options on FETCH & SEARCH imap requests.

For FETCH & SEARCH imap requests without PARTIAL return option, according to RFC the server will return messages up to the limit defined in capabilities along with an OK/MESSAGELIMIT response code.

We would like to keep the response for COPY, MOVE & STORE imap requests and wanted to get your opinions & suggestions. Do you think it is a good idea to perform a partial update and reply with OK/MESSAGELIMIT response code?

If you agree that it is ok to do a partial update, how should we return the MESSAGELIMIT response code on COPY as tagged COPY response includes COPYUID response code?

Looking forward to your suggestions.

Thanks
Vikram


------=_Part_1712572_1061467611.1640286372393
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"yahoo-style-wrap" style=3D"font-fami=
ly:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hi Al=
l<br>We are introducing MESSAGELIMIT capability and response code in <a hre=
f=3D"https://datatracker.ietf.org/doc/draft-melnikov-imap-partial/">IMAP PA=
RTIAL RFC</a>. IMAP PARTIAL RFC is enforcing message retrieval and update l=
imits per imap request.<br><br>As per RFC, IMAP server will return NO with =
MESSAGELIMIT response code to clients using PARTIAL return options on FETCH=
 &amp; SEARCH imap requests.<br><br>For FETCH &amp; SEARCH imap requests wi=
thout PARTIAL return option, according to RFC the server will return messag=
es up to the limit defined in capabilities along with an OK/MESSAGELIMIT re=
sponse code.<br><br>We would like to keep the response for COPY, MOVE &amp;=
 STORE imap requests and wanted to get your opinions &amp; suggestions. Do =
you think it is a good idea to perform a partial update and reply with OK/M=
ESSAGELIMIT response code?<br><br>If you agree that it is ok to do a partia=
l update, how should we return the MESSAGELIMIT response code on COPY as ta=
gged COPY response includes COPYUID response code?<br><br>Looking forward t=
o your suggestions.<br><br>Thanks<br>Vikram<br><br></div></div></body></htm=
l>
------=_Part_1712572_1061467611.1640286372393--


From nobody Sun Dec 26 07:27:54 2021
Return-Path: <timo@sirainen.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 17A653A0AAF for <extra@ietfa.amsl.com>; Sun, 26 Dec 2021 07:27:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.928
X-Spam-Level: 
X-Spam-Status: No, score=-0.928 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, HTML_MESSAGE=0.001, RCVD_IN_XBL=0.375, RDNS_NONE=0.793, SPF_FAIL=0.001, SPF_HELO_FAIL=0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sirainen.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 cLz26x3UIljQ for <extra@ietfa.amsl.com>; Sun, 26 Dec 2021 07:27:46 -0800 (PST)
Received: from sirainen.com (unknown [IPv6:2a04:3542:1000:910:80cb:66ff:fe90:799b]) by ietfa.amsl.com (Postfix) with ESMTP id 0541A3A0AAB for <extra@ietf.org>; Sun, 26 Dec 2021 07:27:45 -0800 (PST)
Received: from smtpclient.apple (unknown [172.111.246.36]) by sirainen.com (Postfix) with ESMTPSA id 5D8602B3C7B; Sun, 26 Dec 2021 15:27:41 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 sirainen.com 5D8602B3C7B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sirainen.com; s=default; t=1640532461; bh=lftRjc0xSTUGRq+i1aqc17XX+k3aZW1lG9h+JZPiAyY=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=kKVrzX5hIomSxUs/MzEDnXkgKnrSx3NrwFCE+CLfteHnbSy4WmVSFk3RFHcx8Q0RB 47wtzUkfTag3WasqqZprowlL2Uy0yK2zi/iiySnpNPnMnrU4AIlfHPugoav2khawp6 KAkO3JqxxwkljjezxPDXZANQLQOC74lTmT9d4og0=
From: Timo Sirainen <timo@sirainen.com>
Message-Id: <78A0AF33-83D1-4C94-9294-316095221E85@sirainen.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D0664952-AC37-4616-B449-B3684407A2F4"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\))
Date: Sun, 26 Dec 2021 17:27:40 +0200
In-Reply-To: <151800306.1712573.1640286372394@mail.yahoo.com>
Cc: "extra@ietf.org" <extra@ietf.org>
To: Vikram Nagulakonda <nvikram=40yahooinc.com@dmarc.ietf.org>
References: <151800306.1712573.1640286372394.ref@mail.yahoo.com> <151800306.1712573.1640286372394@mail.yahoo.com>
X-Mailer: Apple Mail (2.3693.20.0.1.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/GbmUyh7NzADRk4gotWBrrm5emSE>
Subject: Re: [Extra] Suggestions on IMAP PARTIAL response
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: Sun, 26 Dec 2021 15:27:51 -0000

--Apple-Mail=_D0664952-AC37-4616-B449-B3684407A2F4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 23. Dec 2021, at 21.06, Vikram Nagulakonda =
<nvikram=3D40yahooinc.com@dmarc.ietf.org> wrote:
>=20
> Hi All
> We are introducing MESSAGELIMIT capability and response code in IMAP =
PARTIAL RFC =
<https://datatracker.ietf.org/doc/draft-melnikov-imap-partial/>. IMAP =
PARTIAL RFC is enforcing message retrieval and update limits per imap =
request.

"Interaction between PARTIAL, MIN, MAX and SAVE SEARCH return options" =
matches how Dovecot v2.3.11+ behave (I think older versions just =
returned everything in $).

Should the non-UID FETCH command also support PARTIAL? It could be =
useful together with CHANGEDSINCE.

> As per RFC, IMAP server will return NO with MESSAGELIMIT response code =
to clients using PARTIAL return options on FETCH & SEARCH imap requests.
>=20
> For FETCH & SEARCH imap requests without PARTIAL return option, =
according to RFC the server will return messages up to the limit defined =
in capabilities along with an OK/MESSAGELIMIT response code.

I don't see how you can implement this MESSAGELIMIT for FETCH (and maybe =
SEARCH) without breaking existing IMAP clients. They will not be happy =
about partial fetch results, regardless of whether it's returning OK or =
NO. I'd think NO would be at least a bit better since it indicates that =
everything didn't work right.

You could of course make it optional by requiring client to ENABLE =
MESSAGELIMIT, but then why would any client ever do that?

I'm not sure what is the point of it anyway especially for FETCH? The =
server could just throttle the FETCH responses. Does it matter whether =
the client sends one FETCH command for 100k mails, vs 100 FETCH commands =
for 1k mails?

And how is MESSAGELIMIT supposed to work for SEARCH? Is it applying for =
the set of messages being searched, or the number of search results? I =
guess the former? What is client supposed to do if it receives this =
error? Again just do the same SEARCH but just in multiple commands, each =
with an extra seqset parameter for pagination?

FETCH and SEARCH can also return OK [EXPUNGEISSUED] if it skipped over =
some mails that were already expunged. This could conflict with the =
[MESSAGELIMIT].

> We would like to keep the response for COPY, MOVE & STORE imap =
requests and wanted to get your opinions & suggestions. Do you think it =
is a good idea to perform a partial update and reply with =
OK/MESSAGELIMIT response code?

COPY is supposed to be atomic and not perform partial copies. MOVE could =
I guess, if it returns NO [MESSAGELIMIT].

> If you agree that it is ok to do a partial update, how should we =
return the MESSAGELIMIT response code on COPY as tagged COPY response =
includes COPYUID response code?


Existing clients aren't going to understand it anyway, so maybe * NO =
(TAG "...") [MESSAGELIMIT] similarly to ESEARCH. Or something similar.=

--Apple-Mail=_D0664952-AC37-4616-B449-B3684407A2F4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">On =
23. Dec 2021, at 21.06, Vikram Nagulakonda &lt;<a =
href=3D"mailto:nvikram=3D40yahooinc.com@dmarc.ietf.org" =
class=3D"">nvikram=3D40yahooinc.com@dmarc.ietf.org</a>&gt; wrote:<br =
class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D""><div =
class=3D"yahoo-style-wrap" style=3D"font-family:Helvetica Neue, =
Helvetica, Arial, sans-serif;font-size:16px;"><div class=3D"">Hi All<br =
class=3D"">We are introducing MESSAGELIMIT capability and response code =
in <a =
href=3D"https://datatracker.ietf.org/doc/draft-melnikov-imap-partial/" =
class=3D"">IMAP PARTIAL RFC</a>. IMAP PARTIAL RFC is enforcing message =
retrieval and update limits per imap request.<br =
class=3D""></div></div></div></div></blockquote><div><br =
class=3D""></div><div>"Interaction between PARTIAL, MIN, MAX and SAVE =
SEARCH return&nbsp;options" matches how Dovecot v2.3.11+ behave (I think =
older versions just returned everything in $).</div><div><br =
class=3D""></div><div>Should the non-UID FETCH command also support =
PARTIAL? It could be useful together with CHANGEDSINCE.</div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D""><div class=3D"yahoo-style-wrap" style=3D"font-family:Helvetica =
Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div class=3D"">As =
per RFC, IMAP server will return NO with MESSAGELIMIT response code to =
clients using PARTIAL return options on FETCH &amp; SEARCH imap =
requests.<br class=3D""><br class=3D"">For FETCH &amp; SEARCH imap =
requests without PARTIAL return option, according to RFC the server will =
return messages up to the limit defined in capabilities along with an =
OK/MESSAGELIMIT response code.<br =
class=3D""></div></div></div></div></blockquote><div><br =
class=3D""></div><div>I don't see how you can implement this =
MESSAGELIMIT for FETCH (and maybe SEARCH) without breaking existing IMAP =
clients. They will not be happy about partial fetch results, regardless =
of whether it's returning OK or NO. I'd think NO would be at least a bit =
better since it indicates that everything didn't work =
right.</div><div><br class=3D""></div><div>You could of course make it =
optional by requiring client to ENABLE MESSAGELIMIT, but then why would =
any client ever do that?</div><div><br class=3D""></div><div>I'm not =
sure what is the point of it anyway especially for FETCH? The server =
could just throttle the FETCH responses. Does it matter whether the =
client sends one FETCH command for 100k mails, vs 100 FETCH commands for =
1k mails?</div><div><br class=3D""></div><div>And how is MESSAGELIMIT =
supposed to work for SEARCH? Is it applying for the set of messages =
being searched, or the number of search results? I guess the former? =
What is client supposed to do if it receives this error? Again just do =
the same SEARCH but just in multiple commands, each with an extra seqset =
parameter for pagination?</div><div><br class=3D""></div><div>FETCH and =
SEARCH can also return OK [EXPUNGEISSUED] if it skipped over some mails =
that were already expunged. This could conflict with the =
[MESSAGELIMIT].</div><div class=3D""><br class=3D""></div><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D""><div =
class=3D"yahoo-style-wrap" style=3D"font-family:Helvetica Neue, =
Helvetica, Arial, sans-serif;font-size:16px;"><div class=3D"">We would =
like to keep the response for COPY, MOVE &amp; STORE imap requests and =
wanted to get your opinions &amp; suggestions. Do you think it is a good =
idea to perform a partial update and reply with OK/MESSAGELIMIT response =
code?<br class=3D""></div></div></div></div></blockquote><div><br =
class=3D""></div><div>COPY is supposed to be atomic and not perform =
partial copies. MOVE could I guess, if it returns NO =
[MESSAGELIMIT].</div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D""><div class=3D"yahoo-style-wrap"=
 style=3D"font-family:Helvetica Neue, Helvetica, Arial, =
sans-serif;font-size:16px;"><div class=3D"">If you agree that it is ok =
to do a partial update, how should we return the MESSAGELIMIT response =
code on COPY as tagged COPY response includes COPYUID response code?<br =
class=3D""></div></div></div></div></blockquote></div><div class=3D""><br =
class=3D""></div>Existing clients aren't going to understand it anyway, =
so maybe * NO (TAG "...") [MESSAGELIMIT] similarly to ESEARCH. Or =
something similar.</body></html>=

--Apple-Mail=_D0664952-AC37-4616-B449-B3684407A2F4--


From nobody Wed Dec 29 15:48:25 2021
Return-Path: <nvikram@yahooinc.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 212073A0962 for <extra@ietfa.amsl.com>; Wed, 29 Dec 2021 15:48:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level: 
X-Spam-Status: No, score=-2.096 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahooinc.com header.b=C3J72E/T; dkim=pass (2048-bit key) header.d=yahooinc.com header.b=bgYdpYTT
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 O-ud9-mPyRqc for <extra@ietfa.amsl.com>; Wed, 29 Dec 2021 15:48:16 -0800 (PST)
Received: from mx0a-00505701.pphosted.com (mx0a-00505701.pphosted.com [148.163.135.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 588933A0964 for <extra@ietf.org>; Wed, 29 Dec 2021 15:48:16 -0800 (PST)
Received: from pps.filterd (m0212277.ppops.net [127.0.0.1]) by mx0b-00505701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BTKc4sS030518 for <extra@ietf.org>; Wed, 29 Dec 2021 23:48:15 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahooinc.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : content-type; s=pps1; bh=l/AXWDSp+wc5ivY+dyEXwDI4m9sU1TVlutgjnxn1Uow=; b=C3J72E/TqDDhuJhzFKoAKp9Y5BQmGNBAsVU5xxcLvgPz0dIkpaqBEqBRYGMgJPs1ylCx azYCtSXQGF+HozsDePBYg0VvIZu9dWpXg/p2s+7hzZqgXzJqIBtuX2mVsgDeuQgf6PaI 3Hcds2Y7FGWV2hLmkkiU+tKxUrXhc54W5lyocR+koxMaM4COuePL7PTYh2gHNlS2306+ 1Zk5smbdvb5bNI8XUhJyWIX30CFd556HVxW4YNH4oqWaE21vPTVTYQ8tG/FHx87D6Yir 3BqrvMDVZKpek/Efntm36Fk7F2odW+ZXxXE6GzPkEQX1kyc3+iBppzeNMITwPW9o7JWk yg== 
Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0b-00505701.pphosted.com (PPS) with ESMTPS id 3d8xvpgt9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for <extra@ietf.org>; Wed, 29 Dec 2021 23:48:15 +0000
Received: by mail-pj1-f71.google.com with SMTP id r1-20020a17090a438100b001b1906bd90cso18489320pjg.2 for <extra@ietf.org>; Wed, 29 Dec 2021 15:48:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahooinc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=l/AXWDSp+wc5ivY+dyEXwDI4m9sU1TVlutgjnxn1Uow=; b=bgYdpYTTmVyNV2m2p5PkhDWZBHAkvu2MfK/R44NhUlJy2BJUYYxWuvLv1mQ5l6pks7 j12sQBpTM7aTDw0DuzAS78Xqq0U9xq6r+5I0GvorS9gs5zJddtxMsetPNE8ogpSHGAf/ MM7dJ2BLFOYTH1lxyIng/IyKNVTqDfwXaHA5PWE0GExXjcZu43Hvi1yFBYLrJtCnzqYy 6VtvLue/x00n5BDvOjY0OuW2Vw4QS6OquKAlyAUAj2xg2KpQd0uP+BB/PnyJF3prt/q/ oCqmnFGUs1jMS/esTk4KeStjrCPwxxM3hqYmiVVEo8SyoUR5ewsbgavv40FNc3BTSjsi Xl4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=l/AXWDSp+wc5ivY+dyEXwDI4m9sU1TVlutgjnxn1Uow=; b=Ugoj8+P2GD2+ah2tmf6rrgnckHsfzlp1HRn8FfXfFpKXYVeeUsoFbm60tTNCqI1EmL +NwI7kYxV4g/VLYOeiw7vYrfMztbMSihNvhcQczACeWPc89avDQdDwAL/2mLxYrRgQwh AJkqOj+i1ZaTQq1IJpyDoHWwWFGr52cXhkmyk7m7MqbPnyuhf/QKzcAwD34IgEokiQGz 5yRK+aIDUhSRZH79z6VgtcKOw8Qoq8Vw2iEi7g3yke85mOWezch9GQsnfuTYuFcixdGi 3tFivneMEYeY1V7gSX/BZxC5s+iG2QEFke5oGAK2+/YjpmgoZlHJ3w+lcCEY6M1+SK/Z Kbmw==
X-Gm-Message-State: AOAM5337suON0hOxtfHJ6j/4Q/msvNy9nYHMPO3Ii1LUhsI7g1KLyDPe haXIbwU9zEXMMuV6Xsf1E+JPRnDUmtfVEnHlsM0eDMLVFvV0JtHqiXRhZ5puv7M0DJ1kZTrwhwT lQl/Sp4umzHVCBC3p0F+v
X-Received: by 2002:a17:90b:350b:: with SMTP id ls11mr34406247pjb.134.1640821694610;  Wed, 29 Dec 2021 15:48:14 -0800 (PST)
X-Google-Smtp-Source: ABdhPJyZKAXOYhOxPgJsfSyxglAheiwwHPrSfOu7Bvdmp8mLCEj1k53G0g8Kdn2JYQ1/CygpEPePEOLs/H45evI+Pdk=
X-Received: by 2002:a17:90b:350b:: with SMTP id ls11mr34406212pjb.134.1640821693953;  Wed, 29 Dec 2021 15:48:13 -0800 (PST)
MIME-Version: 1.0
References: <mailman.56.1640548833.6032.extra@ietf.org>
In-Reply-To: <mailman.56.1640548833.6032.extra@ietf.org>
From: Vikram Nagulakonda <nvikram@yahooinc.com>
Date: Wed, 29 Dec 2021 15:48:03 -0800
Message-ID: <CAJP5y1BLaZdBDVRoFOf90sdRfctCEh6WFEsYXqn5V+uEB3Txgg@mail.gmail.com>
To: extra@ietf.org
Content-Type: multipart/alternative; boundary="000000000000358dc405d45192e2"
X-Proofpoint-GUID: amaqwo1donDIlEqdUlMjpC6M8c68TrsM
X-Proofpoint-ORIG-GUID: amaqwo1donDIlEqdUlMjpC6M8c68TrsM
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-29_07,2021-12-29_01,2021-12-02_01
X-Proofpoint-Spam-Reason: orgsafe
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/DLefwPaBvKUM_BAP-DDdvFp2knw>
Subject: Re: [Extra] [E] Extra Digest, Vol 48, Issue 3
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, 29 Dec 2021 23:48:23 -0000

--000000000000358dc405d45192e2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

>
> ---------- Forwarded message ----------
> From: Timo Sirainen <timo@sirainen.com>
> To: Vikram Nagulakonda <nvikram=3D40yahooinc.com@dmarc.ietf.org>
> Cc: "extra@ietf.org" <extra@ietf.org>
> Bcc:
> Date: Sun, 26 Dec 2021 17:27:40 +0200
> Subject: Re: [Extra] Suggestions on IMAP PARTIAL response
> On 23. Dec 2021, at 21.06, Vikram Nagulakonda <
> nvikram=3D40yahooinc.com@dmarc.ietf.org> wrote:
>
>
> Hi All
> We are introducing MESSAGELIMIT capability and response code in IMAP
> PARTIAL RFC
> <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__datatracker.ietf.=
org_doc_draft-2Dmelnikov-2Dimap-2Dpartial_&d=3DDwMFAg&c=3DsWW_bEwW_mLyN3Kx2=
v57Q8e-CRbmiT9yOhqES_g_wVY&r=3DiZ14qCSBWgSfwV0j_3_IrghmBn31BHLbst--UCMBCA0&=
m=3DS0F2F4uimu2jnhGAKI2ZF0ai8VncRNMerPQ9xOS7I-GqMGCihJJ-eOz3XzvPo0aJ&s=3DcF=
HCG2qb4QOIZWWIbqjIe3hMjjAYn4_OUGHxeq1VjYw&e=3D>.
> IMAP PARTIAL RFC is enforcing message retrieval and update limits per ima=
p
> request.
>
>
> "Interaction between PARTIAL, MIN, MAX and SAVE SEARCH return options"
> matches how Dovecot v2.3.11+ behave (I think older versions just returned
> everything in $).
>
> Should the non-UID FETCH command also support PARTIAL? It could be useful
> together with CHANGEDSINCE.
>
> Our thought was that sequence numbers were the same as what PARTIAL was
attempting to do. At least in my mind with a mailbox having 1000 messages,
1. UID FETCH 1:* (FLAGS) (PARTIAL 1:100) is equivalent to FETCH 1:100 (UID
FLAGS) and 2. UID FETCH 1:* (FLAGS) (PARTIAL -100:-1) is equivalent to
FETCH 901:1000 (UID FLAGS).

> As per RFC, IMAP server will return NO with MESSAGELIMIT response code to
> clients using PARTIAL return options on FETCH & SEARCH imap requests.
>
> For FETCH & SEARCH imap requests without PARTIAL return option, according
> to RFC the server will return messages up to the limit defined in
> capabilities along with an OK/MESSAGELIMIT response code.
>
>
> I don't see how you can implement this MESSAGELIMIT for FETCH (and maybe
> SEARCH) without breaking existing IMAP clients. They will not be happy
> about partial fetch results, regardless of whether it's returning OK or N=
O.
> I'd think NO would be at least a bit better since it indicates that
> everything didn't work right.
>
NO is what we would prefer. However, this breaks the end-user experience
completely. Most of our imap clients download partial mailboxes and mostly
never download older messages. Our intention was to indicate the response
is different without breaking the user experience.


> You could of course make it optional by requiring client to ENABLE
> MESSAGELIMIT, but then why would any client ever do that?
>
Completely agree with you on ENABLE that clients would never issue the call=
.

>
>

> I'm not sure what is the point of it anyway especially for FETCH? The
> server could just throttle the FETCH responses. Does it matter whether th=
e
> client sends one FETCH command for 100k mails, vs 100 FETCH commands for =
1k
> mails?
>
Our systems have a layered architecture and retrieving 100k messages in one
request would end up consuming lots of memory for a single request. We
prefer smaller payloads to less requests and keeping the service available
for all users. One of our biggest problems is clients over using 1:*
queries even when most of the response payload is thrown away by the client=
.


> And how is MESSAGELIMIT supposed to work for SEARCH? Is it applying for
> the set of messages being searched, or the number of search results? I
> guess the former? What is client supposed to do if it receives this error=
?
> Again just do the same SEARCH but just in multiple commands, each with an
> extra seqset parameter for pagination?
>
Yes. Partial or pagination is being applied on the messages being searched.
Our preference is for clients to repeat the search with smaller message
sets.


>
> FETCH and SEARCH can also return OK [EXPUNGEISSUED] if it skipped over
> some mails that were already expunged. This could conflict with the
> [MESSAGELIMIT].
>
Thanks for identifying the problem with EXPUNGEISSUED. We will review.

>
> We would like to keep the response for COPY, MOVE & STORE imap requests
> and wanted to get your opinions & suggestions. Do you think it is a good
> idea to perform a partial update and reply with OK/MESSAGELIMIT response
> code?
>
>
> COPY is supposed to be atomic and not perform partial copies. MOVE could =
I
> guess, if it returns NO [MESSAGELIMIT].
>
NO seems to be the right response here.

>
> If you agree that it is ok to do a partial update, how should we return
> the MESSAGELIMIT response code on COPY as tagged COPY response includes
> COPYUID response code?
>
>
> Existing clients aren't going to understand it anyway, so maybe * NO (TAG
> "...") [MESSAGELIMIT] similarly to ESEARCH. Or something similar.
>
Thanks. We will review and get back.

-Vikram

--000000000000358dc405d45192e2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">---------- Forwarded message ----------<br>From:=C2=A0Ti=
mo Sirainen &lt;<a href=3D"mailto:timo@sirainen.com" target=3D"_blank">timo=
@sirainen.com</a>&gt;<br>To:=C2=A0Vikram Nagulakonda &lt;nvikram=3D<a href=
=3D"mailto:40yahooinc.com@dmarc.ietf.org" target=3D"_blank">40yahooinc.com@=
dmarc.ietf.org</a>&gt;<br>Cc:=C2=A0&quot;<a href=3D"mailto:extra@ietf.org" =
target=3D"_blank">extra@ietf.org</a>&quot; &lt;<a href=3D"mailto:extra@ietf=
.org" target=3D"_blank">extra@ietf.org</a>&gt;<br>Bcc:=C2=A0<br>Date:=C2=A0=
Sun, 26 Dec 2021 17:27:40 +0200<br>Subject:=C2=A0Re: [Extra] Suggestions on=
 IMAP PARTIAL response<br><div>On 23. Dec 2021, at 21.06, Vikram Nagulakond=
a &lt;<a href=3D"mailto:nvikram=3D40yahooinc.com@dmarc.ietf.org" target=3D"=
_blank">nvikram=3D40yahooinc.com@dmarc.ietf.org</a>&gt; wrote:<br><div><blo=
ckquote type=3D"cite"><br><div><div><div style=3D"font-family:&quot;Helveti=
ca Neue&quot;,Helvetica,Arial,sans-serif;font-size:16px"><div>Hi All<br>We =
are introducing MESSAGELIMIT capability and response code in <a href=3D"htt=
ps://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__datatracker.ietf.org_do=
c_draft-2Dmelnikov-2Dimap-2Dpartial_&amp;d=3DDwMFAg&amp;c=3DsWW_bEwW_mLyN3K=
x2v57Q8e-CRbmiT9yOhqES_g_wVY&amp;r=3DiZ14qCSBWgSfwV0j_3_IrghmBn31BHLbst--UC=
MBCA0&amp;m=3DS0F2F4uimu2jnhGAKI2ZF0ai8VncRNMerPQ9xOS7I-GqMGCihJJ-eOz3XzvPo=
0aJ&amp;s=3DcFHCG2qb4QOIZWWIbqjIe3hMjjAYn4_OUGHxeq1VjYw&amp;e=3D" target=3D=
"_blank">IMAP PARTIAL RFC</a>. IMAP PARTIAL RFC is enforcing message retrie=
val and update limits per imap request.<br></div></div></div></div></blockq=
uote><div><br></div><div>&quot;Interaction between PARTIAL, MIN, MAX and SA=
VE SEARCH return=C2=A0options&quot; matches how Dovecot v2.3.11+ behave (I =
think older versions just returned everything in $).</div><div><br></div><d=
iv>Should the non-UID FETCH command also support PARTIAL? It could be usefu=
l together with CHANGEDSINCE.</div><br></div></div></blockquote><div>Our th=
ought was that sequence numbers were the same as what PARTIAL was attemptin=
g to do. At least in my mind with a mailbox having 1000 messages, 1. UID FE=
TCH 1:* (FLAGS) (PARTIAL 1:100) is equivalent to FETCH 1:100 (UID FLAGS) an=
d 2. UID FETCH 1:* (FLAGS) (PARTIAL -100:-1) is equivalent to FETCH 901:100=
0 (UID FLAGS).</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>=
<div><blockquote type=3D"cite"><div><div><div style=3D"font-family:&quot;He=
lvetica Neue&quot;,Helvetica,Arial,sans-serif;font-size:16px"><div>As per R=
FC, IMAP server will return NO with MESSAGELIMIT response code to clients u=
sing PARTIAL return options on FETCH &amp; SEARCH imap requests.<br><br>For=
 FETCH &amp; SEARCH imap requests without PARTIAL return option, according =
to RFC the server will return messages up to the limit defined in capabilit=
ies along with an OK/MESSAGELIMIT response code.<br></div></div></div></div=
></blockquote><div><br></div><div>I don&#39;t see how you can implement thi=
s MESSAGELIMIT for FETCH (and maybe SEARCH) without breaking existing IMAP =
clients. They will not be happy about partial fetch results, regardless of =
whether it&#39;s returning OK or NO. I&#39;d think NO would be at least a b=
it better since it indicates that everything didn&#39;t work right.</div></=
div></div></blockquote><div>NO is what we would prefer. However, this break=
s the end-user experience completely. Most of our imap clients download par=
tial mailboxes and mostly never download older messages. Our intention was =
to indicate the response is different without breaking the user experience.=
</div><div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div=
><div><div><br></div><div>You could of course make it optional by requiring=
 client to ENABLE MESSAGELIMIT, but then why would any client ever do that?=
</div></div></div></blockquote><div>Completely agree with you on ENABLE tha=
t clients would never issue the call.</div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex"><div><div><div>=C2=A0</div></div></div></blockquote><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><br></div><div>=
I&#39;m not sure what is the point of it anyway especially for FETCH? The s=
erver could just throttle the FETCH responses. Does it matter whether the c=
lient sends one FETCH command for 100k mails, vs 100 FETCH commands for 1k =
mails?</div></div></div></blockquote><div>Our systems have a layered archit=
ecture and retrieving 100k messages in one request would end up consuming l=
ots of memory for a single request. We prefer smaller payloads to less requ=
ests and keeping the service available for all users. One of our biggest pr=
oblems is clients over using 1:* queries even when most of the response pay=
load is thrown away by the client.</div><div><br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(2=
04,204,204);padding-left:1ex"><div><div><div><br></div><div>And how is MESS=
AGELIMIT supposed to work for SEARCH? Is it applying for the set of message=
s being searched, or the number of search results? I guess the former? What=
 is client supposed to do if it receives this error? Again just do the same=
 SEARCH but just in multiple commands, each with an extra seqset parameter =
for pagination?</div></div></div></blockquote><div>Yes. Partial or paginati=
on is being applied on the messages being searched. Our preference is for c=
lients to repeat the search with smaller message sets.</div><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><br></di=
v><div>FETCH and SEARCH can also return OK [EXPUNGEISSUED] if it skipped ov=
er some mails that were already expunged. This could conflict with the [MES=
SAGELIMIT].</div></div></div></blockquote><div>Thanks for=C2=A0identifying =
the problem with EXPUNGEISSUED. We will review.</div><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex"><div><div><div><br></div><blockquote type=3D"ci=
te"><div><div><div style=3D"font-family:&quot;Helvetica Neue&quot;,Helvetic=
a,Arial,sans-serif;font-size:16px"><div>We would like to keep the response =
for COPY, MOVE &amp; STORE imap requests and wanted to get your opinions &a=
mp; suggestions. Do you think it is a good idea to perform a partial update=
 and reply with OK/MESSAGELIMIT response code?<br></div></div></div></div><=
/blockquote><div><br></div><div>COPY is supposed to be atomic and not perfo=
rm partial copies. MOVE could I guess, if it returns NO [MESSAGELIMIT].</di=
v></div></div></blockquote><div>NO seems to be the right response here.</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br><blockquo=
te type=3D"cite"><div><div><div style=3D"font-family:&quot;Helvetica Neue&q=
uot;,Helvetica,Arial,sans-serif;font-size:16px"><div>If you agree that it i=
s ok to do a partial update, how should we return the MESSAGELIMIT response=
 code on COPY as tagged COPY response includes COPYUID response code?<br></=
div></div></div></div></blockquote></div><div><br></div>Existing clients ar=
en&#39;t going to understand it anyway, so maybe * NO (TAG &quot;...&quot;)=
 [MESSAGELIMIT] similarly to ESEARCH. Or something similar.</div></blockquo=
te><div>Thanks. We will review and get back.</div><div><br></div><div>-Vikr=
am</div></div></div>

--000000000000358dc405d45192e2--


From nobody Thu Dec 30 00:03:21 2021
Return-Path: <timo@sirainen.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 803E83A0B19 for <extra@ietfa.amsl.com>; Thu, 30 Dec 2021 00:03:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 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, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sirainen.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 4G1fVnB7Oibk for <extra@ietfa.amsl.com>; Thu, 30 Dec 2021 00:03:14 -0800 (PST)
Received: from sirainen.com (mail.sirainen.com [94.237.26.55]) by ietfa.amsl.com (Postfix) with ESMTP id 4DE6A3A0B1A for <extra@ietf.org>; Thu, 30 Dec 2021 00:03:14 -0800 (PST)
Received: from smtpclient.apple (unknown [176.72.81.201]) by sirainen.com (Postfix) with ESMTPSA id 9009C2B3C7B; Thu, 30 Dec 2021 08:03:09 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 sirainen.com 9009C2B3C7B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sirainen.com; s=default; t=1640851389; bh=1u/kG5wFysMJ9V5/NFAELQGWAsTNZJgh6mCDSYA+v74=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=o4TKPbbYUTWr0r3C5dpRKvsK4xbFqymUKKNYr5/Hd6giQfO0YsNSQ+1ITj89iqx5d cpLf1foU8d5uCbLHXpuaaLeXKqfIkGOXciy2Q+FmOhqjEL4sgvVoMuU7k0Uuc6iVfA 1ErkxaaPuPZIiQC3TOh2POpEElDaB6sCJBFl99Vo=
From: Timo Sirainen <timo@sirainen.com>
Message-Id: <6E46424B-EB9F-4ED3-A1F3-E317E5BAA7D5@sirainen.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D3E419B2-5008-431A-8C2F-DC099805B7AF"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\))
Date: Thu, 30 Dec 2021 10:03:08 +0200
In-Reply-To: <CAJP5y1BLaZdBDVRoFOf90sdRfctCEh6WFEsYXqn5V+uEB3Txgg@mail.gmail.com>
Cc: extra@ietf.org
To: Vikram Nagulakonda <nvikram=40yahooinc.com@dmarc.ietf.org>
References: <mailman.56.1640548833.6032.extra@ietf.org> <CAJP5y1BLaZdBDVRoFOf90sdRfctCEh6WFEsYXqn5V+uEB3Txgg@mail.gmail.com>
X-Mailer: Apple Mail (2.3693.20.0.1.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/B0CMDCraEHT9QFGU0Wjda4tw7Kg>
Subject: Re: [Extra] [E] Extra Digest, Vol 48, Issue 3
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: Thu, 30 Dec 2021 08:03:20 -0000

--Apple-Mail=_D3E419B2-5008-431A-8C2F-DC099805B7AF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 30. Dec 2021, at 1.48, Vikram Nagulakonda =
<nvikram=3D40yahooinc.com@dmarc.ietf.org> wrote:
>=20
> ---------- Forwarded message ----------
> From: Timo Sirainen <timo@sirainen.com <mailto:timo@sirainen.com>>
> To: Vikram Nagulakonda <nvikram=3D40yahooinc.com@dmarc.ietf.org =
<mailto:40yahooinc.com@dmarc.ietf.org>>
> Cc: "extra@ietf.org <mailto:extra@ietf.org>" <extra@ietf.org =
<mailto:extra@ietf.org>>
> Bcc:=20
> Date: Sun, 26 Dec 2021 17:27:40 +0200
> Subject: Re: [Extra] Suggestions on IMAP PARTIAL response
> On 23. Dec 2021, at 21.06, Vikram Nagulakonda =
<nvikram=3D40yahooinc.com@dmarc.ietf.org =
<mailto:nvikram=3D40yahooinc.com@dmarc.ietf.org>> wrote:
>>=20
>> Hi All
>> We are introducing MESSAGELIMIT capability and response code in IMAP =
PARTIAL RFC =
<https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__datatracker.ietf.o=
rg_doc_draft-2Dmelnikov-2Dimap-2Dpartial_&d=3DDwMFAg&c=3DsWW_bEwW_mLyN3Kx2=
v57Q8e-CRbmiT9yOhqES_g_wVY&r=3DiZ14qCSBWgSfwV0j_3_IrghmBn31BHLbst--UCMBCA0=
&m=3DS0F2F4uimu2jnhGAKI2ZF0ai8VncRNMerPQ9xOS7I-GqMGCihJJ-eOz3XzvPo0aJ&s=3D=
cFHCG2qb4QOIZWWIbqjIe3hMjjAYn4_OUGHxeq1VjYw&e=3D>. IMAP PARTIAL RFC is =
enforcing message retrieval and update limits per imap request.
>=20
> "Interaction between PARTIAL, MIN, MAX and SAVE SEARCH return options" =
matches how Dovecot v2.3.11+ behave (I think older versions just =
returned everything in $).
>=20
> Should the non-UID FETCH command also support PARTIAL? It could be =
useful together with CHANGEDSINCE.
>=20
> Our thought was that sequence numbers were the same as what PARTIAL =
was attempting to do. At least in my mind with a mailbox having 1000 =
messages, 1. UID FETCH 1:* (FLAGS) (PARTIAL 1:100) is equivalent to =
FETCH 1:100 (UID FLAGS) and 2. UID FETCH 1:* (FLAGS) (PARTIAL -100:-1) =
is equivalent to FETCH 901:1000 (UID FLAGS).

Right, that's why I was specifically mentioning CHANGEDSINCE. But now =
reading it again, I think you intended it to work differently than I =
first understood. I thought the example:

  C: 101 UID FETCH 25900:26600 (UID FLAGS) (PARTIAL -1:-30 CHANGEDSINCE =
98305)

would return the last 30 messages where modseq >=3D 98305, but I guess =
you meant it first gets the last 30 messages from the UID range and out =
of those it returns the messages where modseq >=3D 98305?

>> As per RFC, IMAP server will return NO with MESSAGELIMIT response =
code to clients using PARTIAL return options on FETCH & SEARCH imap =
requests.
>>=20
>> For FETCH & SEARCH imap requests without PARTIAL return option, =
according to RFC the server will return messages up to the limit defined =
in capabilities along with an OK/MESSAGELIMIT response code.
>=20
> I don't see how you can implement this MESSAGELIMIT for FETCH (and =
maybe SEARCH) without breaking existing IMAP clients. They will not be =
happy about partial fetch results, regardless of whether it's returning =
OK or NO. I'd think NO would be at least a bit better since it indicates =
that everything didn't work right.
> NO is what we would prefer. However, this breaks the end-user =
experience completely. Most of our imap clients download partial =
mailboxes and mostly never download older messages. Our intention was to =
indicate the response is different without breaking the user experience.

I haven't actually looked recently at what the IMAP clients send, but I =
remember earlier most clients did FETCH 1:* FLAGS whenever opening a =
folder. Wouldn't this break the clients' flag syncing?

> You could of course make it optional by requiring client to ENABLE =
MESSAGELIMIT, but then why would any client ever do that?
> Completely agree with you on ENABLE that clients would never issue the =
call.
> =20
>=20
> I'm not sure what is the point of it anyway especially for FETCH? The =
server could just throttle the FETCH responses. Does it matter whether =
the client sends one FETCH command for 100k mails, vs 100 FETCH commands =
for 1k mails?
> Our systems have a layered architecture and retrieving 100k messages =
in one request would end up consuming lots of memory for a single =
request. We prefer smaller payloads to less requests and keeping the =
service available for all users. One of our biggest problems is clients =
over using 1:* queries even when most of the response payload is thrown =
away by the client.
>=20
>=20
> And how is MESSAGELIMIT supposed to work for SEARCH? Is it applying =
for the set of messages being searched, or the number of search results? =
I guess the former? What is client supposed to do if it receives this =
error? Again just do the same SEARCH but just in multiple commands, each =
with an extra seqset parameter for pagination?
> Yes. Partial or pagination is being applied on the messages being =
searched. Our preference is for clients to repeat the search with =
smaller message sets.

Seems .. a bit weird to create a new RFC and require clients to change =
behavior just because of one server implementation. There's no benefit =
for clients to work this way. Also I don't see any benefit for server to =
work this way other than it being easier for your implementation. I =
don't really even see why the standard behavior is more difficult for =
you. Dovecot is already doing the same kind of FETCH pagination with its =
"imapc" storage driver (used e.g. for accessing shared folders). It =
converts incoming FETCH 1:* into a series of individual FETCH commands =
towards a remote IMAP server, and merges the replies so the original =
IMAP client sees a single response to its FETCH 1:* command. There's no =
extra memory usage required for that, since untagged replies are =
immediately forwarded to client while receiving them. So I don't see why =
you couldn't do the same thing. Just process the FETCH in smaller pieces =
internally rather than forcing clients to do it for you.

For COPY I could see MESSAGELIMIT being a helpful feature, since we've =
run into troubles with clients attempting to COPY millions of mails and =
then timeout & retry when it's not happening in 10 seconds or so. =
Although even there I wouldn't really want to just completely break =
existing clients, so I'd prefer doing it only when client acknowledges =
that it understands MESSAGELIMIT by issuing ENABLE. MOVE isn't so much =
of a problem because it can commit the progress periodically.=

--Apple-Mail=_D3E419B2-5008-431A-8C2F-DC099805B7AF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">On =
30. Dec 2021, at 1.48, Vikram Nagulakonda &lt;<a =
href=3D"mailto:nvikram=3D40yahooinc.com@dmarc.ietf.org" =
class=3D"">nvikram=3D40yahooinc.com@dmarc.ietf.org</a>&gt; wrote:<br =
class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex">---------- Forwarded message =
----------<br class=3D"">From:&nbsp;Timo Sirainen &lt;<a =
href=3D"mailto:timo@sirainen.com" target=3D"_blank" =
class=3D"">timo@sirainen.com</a>&gt;<br class=3D"">To:&nbsp;Vikram =
Nagulakonda &lt;nvikram=3D<a href=3D"mailto:40yahooinc.com@dmarc.ietf.org"=
 target=3D"_blank" class=3D"">40yahooinc.com@dmarc.ietf.org</a>&gt;<br =
class=3D"">Cc:&nbsp;"<a href=3D"mailto:extra@ietf.org" target=3D"_blank" =
class=3D"">extra@ietf.org</a>" &lt;<a href=3D"mailto:extra@ietf.org" =
target=3D"_blank" class=3D"">extra@ietf.org</a>&gt;<br =
class=3D"">Bcc:&nbsp;<br class=3D"">Date:&nbsp;Sun, 26 Dec 2021 17:27:40 =
+0200<br class=3D"">Subject:&nbsp;Re: [Extra] Suggestions on IMAP =
PARTIAL response<br class=3D""><div class=3D"">On 23. Dec 2021, at =
21.06, Vikram Nagulakonda &lt;<a =
href=3D"mailto:nvikram=3D40yahooinc.com@dmarc.ietf.org" target=3D"_blank" =
class=3D"">nvikram=3D40yahooinc.com@dmarc.ietf.org</a>&gt; wrote:<br =
class=3D""><div class=3D""><blockquote type=3D"cite" class=3D""><br =
class=3D""><div class=3D""><div class=3D""><div =
style=3D"font-family:&quot;Helvetica =
Neue&quot;,Helvetica,Arial,sans-serif;font-size:16px" class=3D""><div =
class=3D"">Hi All<br class=3D"">We are introducing MESSAGELIMIT =
capability and response code in <a =
href=3D"https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__datatracker=
.ietf.org_doc_draft-2Dmelnikov-2Dimap-2Dpartial_&amp;d=3DDwMFAg&amp;c=3DsW=
W_bEwW_mLyN3Kx2v57Q8e-CRbmiT9yOhqES_g_wVY&amp;r=3DiZ14qCSBWgSfwV0j_3_Irghm=
Bn31BHLbst--UCMBCA0&amp;m=3DS0F2F4uimu2jnhGAKI2ZF0ai8VncRNMerPQ9xOS7I-GqMG=
CihJJ-eOz3XzvPo0aJ&amp;s=3DcFHCG2qb4QOIZWWIbqjIe3hMjjAYn4_OUGHxeq1VjYw&amp=
;e=3D" target=3D"_blank" class=3D"">IMAP PARTIAL RFC</a>. IMAP PARTIAL =
RFC is enforcing message retrieval and update limits per imap =
request.<br class=3D""></div></div></div></div></blockquote><div =
class=3D""><br class=3D""></div><div class=3D"">"Interaction between =
PARTIAL, MIN, MAX and SAVE SEARCH return&nbsp;options" matches how =
Dovecot v2.3.11+ behave (I think older versions just returned everything =
in $).</div><div class=3D""><br class=3D""></div><div class=3D"">Should =
the non-UID FETCH command also support PARTIAL? It could be useful =
together with CHANGEDSINCE.</div><br =
class=3D""></div></div></blockquote><div class=3D"">Our thought was that =
sequence numbers were the same as what PARTIAL was attempting to do. At =
least in my mind with a mailbox having 1000 messages, 1. UID FETCH 1:* =
(FLAGS) (PARTIAL 1:100) is equivalent to FETCH 1:100 (UID FLAGS) and 2. =
UID FETCH 1:* (FLAGS) (PARTIAL -100:-1) is equivalent to FETCH 901:1000 =
(UID FLAGS).</div></div></div></div></blockquote><div><br =
class=3D""></div><div>Right, that's why I was specifically mentioning =
CHANGEDSINCE. But now reading it again, I think you intended it to work =
differently than I first understood. I thought the =
example:</div><div><br class=3D""></div><div>&nbsp; C: 101 UID FETCH =
25900:26600 (UID FLAGS) (PARTIAL -1:-30 CHANGEDSINCE =
98305)</div><div><br class=3D""></div><div>would return the last 30 =
messages where modseq &gt;=3D 98305, but I guess you meant it first gets =
the last 30 messages from the UID range and out of those it returns the =
messages where modseq &gt;=3D 98305?</div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div class=3D""><div =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D""><div style=3D"font-family:&quot;Helvetica =
Neue&quot;,Helvetica,Arial,sans-serif;font-size:16px" class=3D""><div =
class=3D"">As per RFC, IMAP server will return NO with MESSAGELIMIT =
response code to clients using PARTIAL return options on FETCH &amp; =
SEARCH imap requests.<br class=3D""><br class=3D"">For FETCH &amp; =
SEARCH imap requests without PARTIAL return option, according to RFC the =
server will return messages up to the limit defined in capabilities =
along with an OK/MESSAGELIMIT response code.<br =
class=3D""></div></div></div></div></blockquote><div class=3D""><br =
class=3D""></div><div class=3D"">I don't see how you can implement this =
MESSAGELIMIT for FETCH (and maybe SEARCH) without breaking existing IMAP =
clients. They will not be happy about partial fetch results, regardless =
of whether it's returning OK or NO. I'd think NO would be at least a bit =
better since it indicates that everything didn't work =
right.</div></div></div></blockquote><div class=3D"">NO is what we would =
prefer. However, this breaks the end-user experience completely. Most of =
our imap clients download partial mailboxes and mostly never download =
older messages. Our intention was to indicate the response is different =
without breaking the user =
experience.</div></div></div></div></blockquote><div><br =
class=3D""></div><div>I haven't actually looked recently at what the =
IMAP clients send, but I remember earlier most clients did FETCH 1:* =
FLAGS whenever opening a folder. Wouldn't this break the clients' flag =
syncing?</div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D"gmail_quote"><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div class=3D""><div =
class=3D""><div class=3D"">You could of course make it optional by =
requiring client to ENABLE MESSAGELIMIT, but then why would any client =
ever do that?</div></div></div></blockquote><div class=3D"">Completely =
agree with you on ENABLE that clients would never issue the =
call.</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div =
class=3D""><div class=3D""><div =
class=3D"">&nbsp;</div></div></div></blockquote><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div class=3D""><div =
class=3D""><div class=3D""><br class=3D""></div><div class=3D"">I'm not =
sure what is the point of it anyway especially for FETCH? The server =
could just throttle the FETCH responses. Does it matter whether the =
client sends one FETCH command for 100k mails, vs 100 FETCH commands for =
1k mails?</div></div></div></blockquote><div class=3D"">Our systems have =
a layered architecture and retrieving 100k messages in one request would =
end up consuming lots of memory for a single request. We prefer smaller =
payloads to less requests and keeping the service available for all =
users. One of our biggest problems is clients over using 1:* queries =
even when most of the response payload is thrown away by the =
client.</div><div class=3D""><br class=3D""></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div class=3D""><div =
class=3D""><div class=3D""><br class=3D""></div><div class=3D"">And how =
is MESSAGELIMIT supposed to work for SEARCH? Is it applying for the set =
of messages being searched, or the number of search results? I guess the =
former? What is client supposed to do if it receives this error? Again =
just do the same SEARCH but just in multiple commands, each with an =
extra seqset parameter for =
pagination?</div></div></div></blockquote><div class=3D"">Yes. Partial =
or pagination is being applied on the messages being searched. Our =
preference is for clients to repeat the search with smaller message =
sets.</div></div></div></blockquote><div><br class=3D""></div>Seems .. a =
bit weird to create a new RFC and require clients to change behavior =
just because of one server implementation. There's no benefit for =
clients to work this way. Also I don't see any benefit for server to =
work this way other than it being easier for your implementation. I =
don't really even see why the standard behavior is more difficult for =
you. Dovecot is already doing the same kind of FETCH pagination with its =
"imapc" storage driver (used e.g. for accessing shared folders). It =
converts incoming FETCH 1:* into a series of individual FETCH commands =
towards a remote IMAP server, and merges the replies so the original =
IMAP client sees a single response to its FETCH 1:* command. There's no =
extra memory usage required for that, since untagged replies are =
immediately forwarded to client while receiving them. So I don't see why =
you couldn't do the same thing. Just process the FETCH in smaller pieces =
internally rather than forcing clients to do it for you.</div><div><br =
class=3D""></div><div>For COPY I could see MESSAGELIMIT being a helpful =
feature, since we've run into troubles with clients attempting to COPY =
millions of mails and then timeout &amp; retry when it's not happening =
in 10 seconds or so. Although even there I wouldn't really want to just =
completely break existing clients, so I'd prefer doing it only when =
client acknowledges that it understands MESSAGELIMIT by issuing ENABLE. =
MOVE isn't so much of a problem because it can commit the progress =
periodically.</div></body></html>=

--Apple-Mail=_D3E419B2-5008-431A-8C2F-DC099805B7AF--

