mhsign: Ignore expired, revoked, invalid, and similar public keys.
authormarkus schnalke <meillo@marmaro.de>
Thu, 27 Nov 2014 19:26:36 +0000 (20:26 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 27 Nov 2014 19:26:36 +0000 (20:26 +0100)
uip/mhsign.sh

index 9a06053..66ab142 100755 (executable)
@@ -91,7 +91,7 @@ lookupkeyring() {
        if [ $? != 0 ] ; then
                return 1
        fi
-       echo "$key" | sed -n '/^pub/{p;q;}' | cut -d: -f5
+       echo "$key" | sed -n '/^pub:[^idre]:/{p;q;}' | cut -d: -f5
        return 0
 }