explain the json hierarchy format

classic Classic list List threaded Threaded
2 messages Options
meOme meOme
Reply | Threaded
Open this post in threaded view
|

explain the json hierarchy format

Hi!
Can anyone explain the resulting json format to me?
I have a typical respone from
notmuch show --format=json thread:xxxxxxxxx
and i don't really understand the meaning of the hierarchy.

[ what is this list?
  [ list of mails?
    [ what is this list?
      { a mail with id .... comes here
        "id": "000c01d4a6be$4db01750$e91045f0$@freenet.de",
        ....
      },
      [] what is this list? List of responses to the mail above?
    ],
    [
      { the next mail in that thread, that is not a response to a mail above
(otherwise it would go into the list of responses)?
        "id": "000001d4b0ab$08665f50$19331df0$@freenet.de",
        ....
      },
      []
    ],
    [
      {
        "id": "op.zu28t9ejlth65q@localhost",
        .....
      },
      [
        [
          { here we have a response to the mail above?
            "id": "000001d4a44f$dd619ac0$9824d040$@freenet.de",
            ......
          },
          []
        ]
      ]
    ]
  ]
]

More questions:
- Where to finde the newest mail in the thread?
- May the same mail be in a response field and also in an "own" field in the
list of mails?

Thanks!



--
Sent from: http://notmuch.198994.n3.nabble.com/
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Jameson Graef Rollins Jameson Graef Rollins
Reply | Threaded
Open this post in threaded view
|

Re: explain the json hierarchy format

On Wed, Jul 03 2019, meOme <[hidden email]> wrote:
> Can anyone explain the resulting json format to me?
> I have a typical respone from
> notmuch show --format=json thread:xxxxxxxxx
> and i don't really understand the meaning of the hierarchy.

If you have a copy of the source [0] there's a file "devel/schemata"
that explains the structured output.

jamie.

[0] git://notmuchmail.org/git/notmuch
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch