GNU bug report logs -
#7487
24.0.50; Gnus nnimap broken
Previous Next
Reported by: Jason Rumney <jasonr <at> gnu.org>
Date: Fri, 26 Nov 2010 17:06:02 UTC
Severity: normal
Found in version 24.0.50
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Magne Ingebrigtsen <lmi <at> gnus.org> writes:
>> As far as auth-source is concerned, it could have backend initialization
>> functionality that, when a backend (e.g. a .gpg file) doesn't exist,
>> will run specific functions, including creating a .gpg file with
>> symmetric encryption. But right now it simply lets EPA handle everything.
>
> It might make sense to have auth-source control that, but I think it
> would be better if this was controlled by the user "centrally" in Emacs
> somewhere.
I have not yet caught up the discussion, but If you want to simply skip
the key selection, I'd suggest to do:
(make-local-variable 'epa-file-encrypt-to)
(setq epa-file-encrypt-to nil)
in the "authinfo.gpg" buffer (see epa-file-write-region).
Probably you may want to add an option to auth-source.el like:
(defcustom auth-source-gpg-encrypt-to t
"List of recipient keys that `authinfo.gpg' encrypted to.
If the value is not a list, symmetric encryption will be used."
...)
and in auth-source-create(), expand the function body of netrc-store-data()
and put:
(with-temp-buffer
(if auth-source-gpg-encrypt-to
(make-local-variable 'epa-file-encrypt-to))
(if (listp auth-source-gpg-encrypt-to)
(setq epa-file-encrypt-to auth-source-gpg-encrypt-to))
...
(write-region ...))
Regards,
--
Daiki Ueno
This bug report was last modified 14 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.