From: Alain Bench Date: Mon, 30 Oct 2006 02:32:30 +0000 (+0000) Subject: Add the usual %?p? condition around the --passphrase-fd option in 3 X-Git-Tag: mutt-1-5-14-rel~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e4360cd7f6999e59879e1660d0c320e1fc76bfd;p=mutt Add the usual %?p? condition around the --passphrase-fd option in 3 commented-out examples of gpg-2comp usage. Also match gpgv in a good_sign pattern commented-out example. --- diff --git a/contrib/gpg.rc b/contrib/gpg.rc index bca54be6..8d6fc980 100644 --- a/contrib/gpg.rc +++ b/contrib/gpg.rc @@ -40,11 +40,11 @@ set pgp_verify_command="/usr/bin/gpg --status-fd=2 --no-verbose --quiet --bat set pgp_decrypt_command="/usr/bin/gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" # create a pgp/mime signed attachment -# set pgp_sign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" +# set pgp_sign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" # create a application/pgp signed (old-style) message -# set pgp_clearsign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" +# set pgp_clearsign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" set pgp_clearsign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" # create a pgp/mime encrypted attachment @@ -52,7 +52,7 @@ set pgp_clearsign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - set pgp_encrypt_only_command="pgpewrap /usr/bin/gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" # create a pgp/mime encrypted and signed attachment -# set pgp_encrypt_sign_command="pgpewrap gpg-2comp --passphrase-fd 0 -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" +# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" set pgp_encrypt_sign_command="pgpewrap /usr/bin/gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" # import a key into the public key ring @@ -75,7 +75,7 @@ set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --wi # pattern for good signature - may need to be adapted to locale! -# set pgp_good_sign="^gpg: Good signature from" +# set pgp_good_sign="^gpgv?: Good signature from " # OK, here's a version which uses gnupg's message catalog: # set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"