jb55 on Nostr: one liner to get the subtotal from my inbox: notmuch show --format=raw ...
one liner to get the subtotal from my inbox:
notmuch show --format=raw subject:invoice and from:daniel and tag:inbox | grep -A1000 "Content-Type: application/octet-stream" - | grep -v -e "^--" -e "Content-" | base64 -d | gpg -d | yq .subtotal
Published at
2025-01-07 16:39:55Event JSON
{
"id": "4eeb82ce1281605de762c10959bbb331e8ef5ba2faf00784e0effe739f12eb36",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1736267995,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
],
[
"e",
"24b2ae7f0a719053528bc723db4f234188ea9f8ea95325f6bb6b97a07a7e0112",
"",
"root"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "one liner to get the subtotal from my inbox:\n\nnotmuch show --format=raw subject:invoice and from:daniel and tag:inbox | grep -A1000 \"Content-Type: application/octet-stream\" - | grep -v -e \"^--\" -e \"Content-\" | base64 -d | gpg -d | yq .subtotal",
"sig": "8ce47585b9173c3966095c48c79d04d8656b1de8fcff85fd541570ada03322c911e6a6d711c252a4fa3a1d47a3d097e8ca2ec72406a1bafd3ff837122af1c7e5"
}