Re: Fetching short text snippet for mails

Bron Gondwana <[email protected]>
Newsgroups gmane.ietf.imapext
Message-ID <1418296810.2263306.201612225.3920308B@webmail.messagingengine.com>
On Thu, Dec 11, 2014, at 10:14 PM, Arnt Gulbrandsen wrote:
> On Wednesday, December 3, 2014 12:35:42 AM CEST, Bron Gondwana wrote:
> > It's like FUZZY search.  Rather than specifying an exact algorithm which
> > can be identical in every server, we're much better off saying "present
> > a preview that gives a brief overview of what's in the message" and let
> > the server calculate it as it sees fit.
> 
> Fuzzy is roughly like this:
> 
>    if(server supports fuzzy)
>       send "fuzzy + " foo
>    else
>       send "(or subject " + foo + " body " + foo + ")"
> 
> Your client uses your snippet extension more like this:
> 
>    assert(server supports snippet)
>    send "uid fetch snippet"
> 
> Quite similar in that it's simple for the client and good for the user, but 
> there is a difference between if and assert ;)

if (server support snippet)
  send "uid fetch snippet"
else if (use dumb snippets anyway)
  send "uid fetch BODY<0.140>"
else
  don't display snippet field

It's not rocket surgery.

(there's a complex else case too, I pasted it earlier, but the easy is to just not display it, or display the first 140 bytes of the body)

-- 
  Bron Gondwana
  [email protected]

_______________________________________________
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.