Add new environment variable SENDMAIL_ARGS to allow user to pass arguments to sendmai...
authorfranck <franck@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 23 Nov 2010 20:57:58 +0000 (20:57 +0000)
committerfranck <franck@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 23 Nov 2010 20:57:58 +0000 (20:57 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@481 b513b33f-fedd-0310-b452-c3deb5f4c849

debian/changelog
gpg-mailkeys/example.gpg-mailkeysrc
gpg-mailkeys/gpg-mailkeys
gpg-mailkeys/gpg-mailkeys.1

index 3b40bd618e02c9b04746f6ca7bb97279b463dd2e..04958f3964658c9c421e5d2996393588db009885 100644 (file)
@@ -17,6 +17,8 @@ signing-party (1.1.4-1) UNRELEASED; urgency=low
       springgraph (closes: #604028).
   * gpg-mailkeys:
     + Correct path of ~/.gpg-mailkeysrc and ~/.signature in manpage.
+    + Add new environment variable SENDMAIL_ARGS to allow user to pass
+      arguments to sendmail (closes: #599409).
   * caff:
     + Refactor import of own key and import for keys to sign from keyrings.
     + Also automatically import keys to sign from the user's normal gpg
index 6a75b96aa99b22b8f439bc38d9706036cc77ad4e..e356ee4f714fb89e43927c9b8e85044b986f1df4 100644 (file)
@@ -15,3 +15,10 @@ Hi, here you are: your signed key.
 
 See you!
 "
+
+# You can add here whatever arguments you want to pass to sendmail.
+# For example, if you use ssmtp, you may want to set your credentials this way
+#     SENDMAIL_ARGS="-au myusername -aps3cr3t"
+# to authenticate to the smtp server with username myusername and password
+# s3cr3t.
+SENDMAIL_ARGS=""
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
index 379637489795173d207083611e5dbb83cac195a1..cdd820722c2a298bc1d87e108e62ac0fa6bd3e44 100644 (file)
@@ -1,5 +1,5 @@
 .\"
-.TH GPG-MAILKEYS 1 "June 29, 2010"
+.TH GPG-MAILKEYS 1 "Nov 23, 2010"
 .SH NAME
 .B gpg\-mailkeys
 \- sends emails containing keys to their owners
@@ -31,6 +31,11 @@ Set the subject of the messages you send
 .TP 13
 .I TEXT
 Set the body text of the messages
+.TP 13
+.I SENDMAIL_ARGS
+Set arguments to pass to /usr/sbin/sendmail. This can be useful to set
+credentials in order to authenticate to an smtp server when using ssmtp
+for example.
 
 .SH FILES
 The behavior of