dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit d32374a5c5b9f4e55a9dcc603e8b1d3c268b199e
parent 75c6e43079992d85554a941b8893188e1ec4b5b3
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed, 10 Aug 2016 21:45:42 +0000

update .gnus.el

* rsd/gnus/gpg-setup: call 'mml-secure-message-sign-pgpmime only when
  there is a gpg key corresponding to "from".

Diffstat:
.gnus.el | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gnus.el b/.gnus.el @@ -84,13 +84,15 @@ be 587. "Set gpg key according to the FROM address." (cond ((string-match "rsd@gnu.org\\|s@ricketyspace.net" from) - (setq mml2015-signers '("1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377"))))) + (setq mml2015-signers + '("1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377")) + t) + (t nil))) (defun rsd/gnus/gpg-setup () "Setup gpg." - (rsd/gnus/set-gpg-key - (rsd/gnus/get-msg-header "from")) - (mml-secure-message-sign-pgpmime)) + (if (rsd/gnus/set-gpg-key (rsd/gnus/get-msg-header "from")) + (mml-secure-message-sign-pgpmime))) (defun advice/msg-make-date-utc (&optional now) "Make valid date header with time zone set to UTC."