From aa58927f86322757cc85fa469564e8b05ddcdcda Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 29 Feb 2020 12:18:06 +0100 Subject: improve notmuch-tcp --- notmuch-tcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch-tcp') 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} cd ~/.notmuch-tcp -@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}") +@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}") -- cgit v1.2.3