Hacker News new | ask | show | jobs
by matthias_hmb 1587 days ago
Thanks for that hint. I added command 'r' to send a raw stanza, so a script would work like this:

BASE64_OPENPGP_MESSAGE=$(echo "message" | gpg | b64)"

echo "r <message to='juliet@example.org'><openpgp xmlns='urn:xmpp:openpgp:0'>${BASE64_OPENPGP_MESSAGE}</openpgp></message>" | txmppc