lisp/gnus/mml2015.el (mml2015-epg-key-image): separate attribute stream from stderr

This commit is contained in:
Andreas Schwab 2012-12-27 14:44:01 +00:00 committed by Katsumi Yamaoka
parent c396a95363
commit 541aff54ba
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,9 @@
2012-12-27 Andreas Schwab <schwab@linux-m68k.org>
* mml2015.el (mml2015-epg-key-image): separate attribute stream from
stderr.
* nnimap.el (nnimap-find-article-by-message-id):
Don't error out if group is nil.

View file

@ -827,7 +827,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
(let* ((coding-system-for-write 'binary)
(coding-system-for-read 'binary)
(data (shell-command-to-string
(format "%s --list-options no-show-photos --attribute-fd 2 --list-keys %s > /dev/null"
(format "%s --list-options no-show-photos --attribute-fd 3 --list-keys %s 3>&1 >/dev/null 2>&1"
epg-gpg-program key-id))))
(when (> (length data) 0)
(insert (substring data 16))