Add new environment variable SENDMAIL_ARGS to allow user to pass arguments to sendmai...
[pgp-tools.git] / gpg-mailkeys / gpg-mailkeys
index 7ba5139dfe6decf69a12ba012a8179561bd5cb5e..7abe2200ee4dcd54811ad2a14d8e1ddd9eacaaad 100755 (executable)
@@ -61,6 +61,9 @@ Here is your signed GPG key.
 Enjoy,
 $NAME"
 fi
+if [ -z "$SENDMAIL_ARGS" ]; then
+       SENDMAIL_ARGS=""
+fi
 
 get_local_charset
 
@@ -120,7 +123,7 @@ Content-Disposition: attachment; filename="$1.asc"
 --$BOUNDARY--
 EOM
        printf " sending"
-       /usr/sbin/sendmail -ti <$TEMPFILE
+       /usr/sbin/sendmail $SENDMAIL_ARGS -ti <$TEMPFILE
        rm $TEMPFILE
        printf " done.\n"
        shift 1