On Mon, Aug 13, 2001 at 11:43:53PM +0200, Jan-Hendrik Palic wrote:
>
> In my .muttrc I have this vor gpg- encryptions:
>
> set pgp_encrypt_only_command="gpg -v --batch --output - --encrypt --textmode
> --armor --always-trust -- -r %r -- %f"
>
> set pgp_encrypt_sign_command="gpg --passphrase-fd 0 -v --batch --textmode
> --output - --encrypt --sign %?a?-u %a? --armor --always-trust --
> -r %r -- %f".
>
I am using the contributed gpg.rc file and there I have
set pgp_encrypt_only_command="pgpewrap gpg -v --batch -o - --encrypt
--textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v
--batch -o - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
and pgpewrap is as follows:
#!/bin/sh --
cmd=$1
pfx=""
die() {
echo "Command line usage: $0 [flags] -- prefix [recipients]"
>& 2
exit 1
}
while test $# -gt 0 && shift && test -n "$1" ; do
if test "$1" = "--" ; then
shift || die
pfx="$1"
shift || die
fi
cmd="$cmd $pfx $1"
done
exec $cmd
HTH
Frank