X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=devel%2Fschemata;h=cdd0e433f6f442665fc1066f78bfafebe07ce3a2;hb=ec630c663597cc3d6f4f98f9ec4ec17a6c7b5bbc;hp=d1ab983a17bc33a42c9e772ac6a4820d0d561461;hpb=102f58d7a4532aa5f7a21edfd24758be864ea8d4;p=notmuch diff --git a/devel/schemata b/devel/schemata index d1ab983a..cdd0e433 100644 --- a/devel/schemata +++ b/devel/schemata @@ -14,6 +14,8 @@ are interleaved. Keys are printed as keywords (symbols preceded by a colon), e.g. (:id "123" :time 54321 :from "foobar"). Null is printed as nil, true as t and false as nil. +This is version 1 of the structured output format. + Common non-terminals -------------------- @@ -75,7 +77,14 @@ part = { # A leaf part's body content is optional, but may be included if # it can be correctly encoded as a string. Consumers should use # this in preference to fetching the part content separately. - content?: string + content?: string, + # If a leaf part's body content is not included, the length of + # the encoded content (in bytes) may be given instead. + content-length?: int, + # If a leaf part's body content is not included, its transfer encoding + # may be given. Using this and the encoded content length, it is + # possible for the consumer to estimate the decoded content length. + content-transfer-encoding?: string } # The headers of a message or part (format_headers_sprinter with reply = FALSE) @@ -113,21 +122,21 @@ notmuch search schema --------------------- # --output=summary -summary = [thread*] +search_summary = [thread_summary*] # --output=threads -threads = [threadid*] +search_threads = [threadid*] # --output=messages -messages = [messageid*] +search_messages = [messageid*] # --output=files -files = [string*] +search_files = [string*] # --output=tags -tags = [string*] +search_tags = [string*] -thread = { +thread_summary = { thread: threadid, timestamp: unix_time, date_relative: string, # user-friendly timestamp