diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-02-29 12:18:06 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-02-29 12:18:06 +0100 |
commit | aa58927f86322757cc85fa469564e8b05ddcdcda (patch) | |
tree | ea72330fcc53f5bbbb48d5297b44c743b9ba6f32 | |
parent | f55aa62c7dd25d44b37985ef5f109eb8212f5ae7 (diff) | |
download | utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.gz utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.bz2 utils-aa58927f86322757cc85fa469564e8b05ddcdcda.tar.xz utils-aa58927f86322757cc85fa469564e8b05ddcdcda.zip |
improve notmuch-tcp
-rwxr-xr-x | notmuch-tcp | 2 |
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 | ||
7 | cd ~/.notmuch-tcp | 7 | cd ~/.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}") |