Re: The IMAP APPENDLIMIT Extension

Jayantheesh S B <[email protected]>
Newsgroups gmane.ietf.imapext
Message-ID <02454F842DD7B449B96715A2AD90C0365109D87B@exMB5.telecom.sna.samsung.com>
Hi Stuart,

Yes you're right, server's global limit can be advertised via the new Capability (APPENDLIMIT=number), and it will be sufficient.

No, changes are not expected in Select/Examine/Status/List responses in most of the cases, except in cases where server wants to impose per mailbox limit.

We still give server the provision, that it can advertise APPENDLIMIT for per mailbox (if it really wants to).
Otherwise the value advertised by CAPABILITY is sufficient.

Regards,
Jay

-----Original Message-----
From: Stuart Brandt [mailto:[email protected]] 
Sent: Thursday, February 19, 2015 10:01 PM
To: Jayantheesh S B
Cc: [email protected]
Subject: Re: [imapext] The IMAP APPENDLIMIT Extension

Jay -

Where things are getting muddled for me, at least, is the possible conflation of per-mailbox policy based limits (which I suspect is a rare
case) with Quota.

If a server has a rarely changing, policy based Append limit that applies the same to all mailboxes of the authenticated user, would an implementation that simply advertises the server's global limit via the new Capability be sufficient, or are changes expected to Select/Examine/Status/List responses in order to cover the pending quota exhaustion case?

- Stuart

On 2/19/15 3:55 PM, Jayantheesh S B wrote:
> Hi Michael,
>
> The intension of this draft to inform client about the supported APPENDLIMIT by the server beforehand to avoid any failure.
> Most of the time, in normal uses cases, if an attachment with huge size is appended, server rejects with error response.
> Form the client side, it's not aware of the server side supported limit. Please find the failure transaction snippet below.
>
>>>>   APPEND "Drafts" (\SEEN \DRAFT) {50287114}
> <<<  ["BAD", "parse error: request too long"]
>
>>>> APPEND inbox (\SEEN) {50287114}
> <<< BAD [ALERT] Message too large. 
> http://support.google.com/mail/bin/answer.py?answer=8770
>
> That too when LITERAL+ is used, then it consumes more battery power and mobile data in the mobile environment.
> To avoid these kind of issues, this draft proposes two recommendation.
>
> 1.   Avoid using LITERAL+ for APPEND
> 2.   Advertise IMAP server supported APPENDLIMIT to client, so that client will not try appending the huge attachments.
>
> By implementing the first recommendation, issue will get solved halfway. But still client will not know the exact size supported by the server.
> IMAP Client has to do hit and trail to find out the exact size supported by the IMAP server.
>
> The second recommendation is similar to that of "SMTP Service Extension for Message Size Declaration" (https://tools.ietf.org/html/rfc1870).
> Supported APPENDLIMIT value is advertised as part of CAPABILITY response. In case, if IMAP server has mailbox specific limit restriction,
>   then it can be published as part of SELECT/EXAMINE, and LIST response.  This value is static in most of the cases, except the corner case,
>   where server is critically running short of memory to accommodate new emails.
>
> To summarize , APPENDLIMIT is a recommendation to the client about the APPEND size supported by the server, rather than the real physical
>   memory in server.  It gives an idea to the client that how much it can APPEND, rather than trying appending huge data and then fail.
>
> Regards,
> Jay
>
> -----Original Message-----
> From: Michael M Slusarz [mailto:[email protected]]
> Sent: Wednesday, February 18, 2015 4:04 PM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [imapext] The IMAP APPENDLIMIT Extension
>
> Quoting [email protected]:
>
>> If a client wants what appendlimit offers, it can just send an append 
>> without literal+, right?
>
> I tend to agree that APPENDLIMIT that doesn't provide a precise size doesn't provide anything better than the current situation of simply not using literal+ for APPENDs.
>
> I think that if the append limit is static on a server and can be provided with the CAPABILITY string, that is a win.  And I have no issues with providing a client-side way of *proactively* requesting the limit for a mailbox via STATUS.
>
> But passively including this information in SELECT/EXAMINE responses is a poor decision if that data is not accurate.  As a client author, I would ignore APPENDLIMIT if it is not 100% accurate since there is a chance that I might actually be able to add the message notwithstanding the value provided.
>
> michael
>
> ___________________________________
> Michael Slusarz [[email protected]]
>
>
> _______________________________________________
> imapext mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/imapext
>

_______________________________________________
imapext mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/imapext
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.