Use "thread" field as id, as per notmuch.