16.06.2013 01:44, Jochen Spieker ?????:
> Alex Dubinin:
>> Hello, I'm trying to send email from a bash script with mutt and sign a
>> message of GPG.
> Where does the passphrase for signing crom from? It is usally read from
> stdin (the keyboard in this case).
>
> J.
I think:

# cat .muttrc
---
set pgp_sign_command="gpg --no-verbose --batch --quiet --output -
%?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
---
set pgp_sign_as=0xMY_KEY_ID
---
set crypt_autosign
---
set pgp_autosign=yes


passphrase-fd 0 - passphrase must be entered from stdin. But i do not
get promt for a passphrase.
Moreover, changed that line to
set pgp_sign_command="gpg --no-verbose --batch --quiet --output -
%?p?--passphrase-fd 3? --armor --detach-sign --textmode %?a?-u %a? %f
3</root/.gpgrc"
to get the password from the file /root/.gpgrc. Not work (((

  * ?????????? - ?????????
  * ??????????
  * ???????

  * ??????????
  * ???????

<javascript:void(0);>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to