1996-03-06 - No Subject

Header Data

From: owner-cypherpunks@toad.com
To: N/A
Message Hash: 8b06484153fe97767aefa4c7f44c326e6f2277655413f2f2ff6bc478f8cf9e95
Message ID: <QQafxr19440.199603062255@relay3.UU.NET>
Reply To: N/A
UTC Datetime: 1996-03-06 23:22:16 UTC
Raw Date: Thu, 7 Mar 1996 07:22:16 +0800

Raw message

From: owner-cypherpunks@toad.com
Date: Thu, 7 Mar 1996 07:22:16 +0800
Subject: No Subject
Message-ID: <QQafxr19440.199603062255@relay3.UU.NET>
MIME-Version: 1.0
Content-Type: text/plain


David Lesher wrote:

| How about code that goes out & fetches keys upon demand, al-la DNS?

This works with procmail to get keys for all mail I receive.  I
discovered the problem is your keyrings get unmanageably large when
you do this.



# auto key retreival
#
# I have an elm alias, pgp, points to a keyserver

:0BW
* -----BEGIN PGP
*!^FROM_DAEMON
KEYID=|/home/adam/bin/sender_unknown

:0 ahc	# added h 8 jan 95
* ! ^X-Loop: Adams akr
| formail -a"X-Loop: Adams akr" |elm -s"mget $KEYID" pgp

# add the incoming keys to the ring

:0
* From bal@swissnet.ai.mit.edu
{
   # if we accidentally get the whole thing.
   :0 h
   * >10000
   /dev/null

   :0 h
   *^Subject:.*no keys match
   /dev/null

   :0:
   *Subject: Your command, ADD
   $DEFAULT


   :0E
   | pgp +batchmode -fka
}

sender_unknown:
#!/bin/sh
# unknown returns a keyid, exits 1 if the key is known
# $output is to get the exit status. Othierwise, this would be a one
liner.
OUTPUT=`pgp -f +VERBOSE=0 +batchmode  -o /dev/null`
echo $OUTPUT | egrep -s 'not found in file'
EV=$? 
if [ $EV -eq 0 ]; then 
        echo $OUTPUT | awk '{print $6}' 
fi
exit $EV


-- 
"It is seldom that liberty of any kind is lost all at once."
					               -Hume






Thread