Issue 545 wish: Add a --gpg-command=COMMAND for darcs send analogous to --sendmail-command

Title wish: Add a --gpg-command=COMMAND for darcs send analogous to --sendmail-command
Priority wishlist Status needs-implementation
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, gwern, kowey, tommy
Assigned To
Topics ProbablyEasy

Created on 2007-10-08.03:49:55 by gwern, last changed 2010-03-23.17:57:26 by kowey.

msg2160 (view) Author: gwern Date: 2007-10-08.03:49:55
So, my personal setup is such that whenever an application needs my password I
have it call a little shell script. This way my password isn't on the disk in
plain text but is still acessible.

For darcs send, I needed to configure ssmtp, and a little work allowed me to
alias 'darcs send' to something which would correctly send an email without
requiring my password in /etc/ssmtp/ssmtp.conf. It requires a way to specify the
command darcs actually runs. Fortunately, there is a command to do exactly this,
--sendmail-command=, so I could write 
 darcs send --sendmail-command="torify ssmtp -au `gpg-address` -ap
`gpg-password` %t %<"

However, suppose I want to *sign* something with my private key, like I do all
my other emails? --sign doesn't work, because there's no way to tell it to use
my gpg-password shell script to get the passphrase for the key, and the
modifications to one's gpg.conf suggested in the manual both don't seem to work
for me and also seem kind of insecure. So I would personally like a
--gpg-command=, which works just like --sendmail-command (with different
escapes, obviously). That would let me solve my problem; I know it can be done
as I do a very similar thing in mutt - it just needs to be done.
Date User Action Args
2007-10-08 03:49:56gwerncreate
2007-10-29 12:04:00koweysettopic: + ProbablyEasy
2008-02-03 02:35:16markstossetstatus: unread -> deferred
nosy: droundy, tommy, beschmi, kowey, gwern
title: Add a --gpg-command=COMMAND for darcs send analogous to --sendmail-command -> wish: Add a --gpg-command=COMMAND for darcs send analogous to --sendmail-command
2009-08-06 17:50:48adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, gwern
2009-08-06 20:54:08adminsetnosy: - beschmi
2009-08-10 22:08:55adminsetnosy: + gwern, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-11 00:33:05koweysetstatus: deferred -> needs-implementation
nosy: tommy, kowey, simon, thorkilnaur, gwern, dmitry.kurochkin
2009-08-25 18:02:10adminsetnosy: + darcs-devel, - simon
2009-08-27 14:22:33adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, gwern, dmitry.kurochkin
2010-03-23 17:57:26koweysetnosy: - thorkilnaur