web: show message-ID when viewing thread

This commit is contained in:
Bill Thiede 2023-12-02 16:35:37 -08:00
parent ac5660a6d0
commit 071fe2e206
3 changed files with 18 additions and 0 deletions

View File

@ -207,6 +207,22 @@
"description": null,
"enumValues": null,
"fields": [
{
"args": [],
"deprecationReason": null,
"description": null,
"isDeprecated": false,
"name": "id",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
{
"args": [],
"deprecationReason": null,

View File

@ -2,6 +2,7 @@ query ShowThreadQuery($threadId: String!) {
thread(threadId: $threadId) {
subject
messages {
id
subject
from {
name

View File

@ -263,6 +263,7 @@ fn view_thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
.map(|from| div![C!["header"], "From: ", view_address(&from)]),
msg.timestamp
.map(|ts| div![C!["header"], "Date: ", human_age(ts)]),
div!["Message-ID: ", &msg.id],
div![
C!["header"],
IF!(!msg.to.is_empty() => span!["To: ", view_addresses(&msg.to)]),