mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
imapserver: implement PREVIEW extension (RFC 8970), and store previews in message database
We were already generating previews of plain text parts for the webmail interface, but we didn't store them, so were generating the previews each time messages were listed. Now we store previews in the database for faster handling. And we also generate previews for html parts if needed. We use the first part that has textual content. For IMAP, the previews can be requested by an IMAP client. When we get the "LAZY" variant, which doesn't require us to generate a preview, we generate it anyway, because it should be fast enough. So don't make clients first ask for "PREVIEW (LAZY)" and then again a request for "PREVIEW". We now also generate a preview when a message is added to the account. Except for imports. It would slow us down, the previews aren't urgent, and they will be generated on-demand at first-request.
This commit is contained in:
@ -234,7 +234,7 @@ https://www.iana.org/assignments/message-headers/message-headers.xhtml
|
||||
8474 Roadmap - IMAP Extension for Object Identifiers
|
||||
8508 Yes - IMAP REPLACE Extension
|
||||
8514 Yes - Internet Message Access Protocol (IMAP) - SAVEDATE Extension
|
||||
8970 Roadmap - IMAP4 Extension: Message Preview Generation
|
||||
8970 Yes - IMAP4 Extension: Message Preview Generation
|
||||
9208 Partial - IMAP QUOTA Extension
|
||||
9394 Roadmap - IMAP PARTIAL Extension for Paged SEARCH and FETCH
|
||||
9585 ? - IMAP Response Code for Command Progress Notifications
|
||||
|
Reference in New Issue
Block a user