projects
/
pgp-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo, fix next/return/undefined bug with send_mail
[pgp-tools.git]
/
gpg-mailkeys
/
gpg-mailkeys
diff --git
a/gpg-mailkeys/gpg-mailkeys
b/gpg-mailkeys/gpg-mailkeys
index c065751f6845c8be5e10d2facaa177820eb005ae..d9ca25968dff3d540d237b40f0d23704ce1ddec2 100755
(executable)
--- a/
gpg-mailkeys/gpg-mailkeys
+++ b/
gpg-mailkeys/gpg-mailkeys
@@
-1,8
+1,12
@@
#! /bin/sh
#! /bin/sh
+#
+# gpg-mailkeys: mail out just signed keys to their owners
+#
+# $Id$
set -e
set -e
-VERSION=
"0.3.1"
+VERSION=
'$Rev$'
if [ -z "$*" ]; then
echo "Send people their newly signed GPG key by mail."
if [ -z "$*" ]; then
echo "Send people their newly signed GPG key by mail."
@@
-55,7
+59,7
@@
Subject: $SUBJECT
User-Agent: gpg-mailkeys/$VERSION
MIME-Version: 1.0
Content-Type: multipart/mixed; micalg=pgp-sha1;
User-Agent: gpg-mailkeys/$VERSION
MIME-Version: 1.0
Content-Type: multipart/mixed; micalg=pgp-sha1;
-
protocol="application/pgp-signature";
boundary="$BOUNDARY"
+ boundary="$BOUNDARY"
Content-Disposition: inline
Content-Disposition: inline
@@
-78,15
+82,15
@@
fi
cat << EOM >> $TEMPFILE
--$BOUNDARY
cat << EOM >> $TEMPFILE
--$BOUNDARY
-Content-Type:
text/plain; charset=us-ascii
-Content-Disposition: attachment; filename="$1.
sig
"
+Content-Type:
application/pgp-keys
+Content-Disposition: attachment; filename="$1.
asc
"
`gpg --armor --export $1`
--$BOUNDARY--
EOM
echo -n " sending"
`gpg --armor --export $1`
--$BOUNDARY--
EOM
echo -n " sending"
- /usr/sbin/sendmail -t <$TEMPFILE
+ /usr/sbin/sendmail -t
i
<$TEMPFILE
rm $TEMPFILE
echo " done."
shift 1
rm $TEMPFILE
echo " done."
shift 1