summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-02-29 12:18:06 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-02-29 12:18:06 +0100
commitaa58927f86322757cc85fa469564e8b05ddcdcda (patch)
treeea72330fcc53f5bbbb48d5297b44c743b9ba6f32
parentf55aa62c7dd25d44b37985ef5f109eb8212f5ae7 (diff)
downloadutils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar
utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.gz
utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.bz2
utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.xz
utils-aa58927f86322757cc85fa469564e8b05ddcdcda.zip
improve notmuch-tcp
-rwxr-xr-xnotmuch-tcp2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-tcp b/notmuch-tcp
index 57da3f5..d2f7a57 100755
--- a/notmuch-tcp
+++ b/notmuch-tcp
@@ -6,4 +6,4 @@ NOTMUCH_HOST=${NOTMUCH_HOST:-odin.asgard.yggdrasil}
6 6
7cd ~/.notmuch-tcp 7cd ~/.notmuch-tcp
8 8
9@socat@/bin/socat STDIO,ignoreeof openssl:${NOTMUCH_HOST}:${NOTMUCH_TCP},verify=1,cafile=ca.pem,certificate=${HOST}.pem,key=${HOST}.key <<(print "${(@q)@}"; inp=$(cat); printf "%d\n" $(@coreutils@/bin/wc -c <<<"${inp}"); @coreutils@/bin/cat <<<"${inp}") 9@socat@/bin/socat STDIO,ignoreeof openssl:${NOTMUCH_HOST}:${NOTMUCH_TCP},verify=1,cafile=ca.pem,certificate=${HOST}.pem,key=${HOST}.key <<(print "${(@q)@}"; inp=$(cat 2>&- || echo ""); printf "%d\n" $(@coreutils@/bin/wc -c <<<"${inp}"); @coreutils@/bin/cat <<<"${inp}")