From 0dabb5cb4ec8c6252f869f0ae1184ad3c6f95451 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 12 Mar 2020 12:57:06 +0100 Subject: sendmailadvanced: only consider keys which are suitable for encryption for encryption --- sendmailadvanced.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sendmailadvanced.in b/sendmailadvanced.in index 4afcf05..e61a896 100755 --- a/sendmailadvanced.in +++ b/sendmailadvanced.in @@ -48,6 +48,9 @@ gpgAdressaten() { if \ ( gpg --with-colons --list-public-keys "${adressat}" 2> /dev/null | \ + sed -n ' + /^pub\(:[^:]*\)\{10\}:[^:]*E[^:]*:/,/^tru:/ p + ' | \ grep '^uid:[mfuw]:' | \ cut -d: -f10 | \ tr '<>' '\n' | \ -- cgit v1.2.3-70-g09d2