[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/autocrypt f3a556f216 66/94: Revert autocrypt-accounts b
From: |
ELPA Syncer |
Subject: |
[elpa] externals/autocrypt f3a556f216 66/94: Revert autocrypt-accounts back into a user option |
Date: |
Sun, 26 Mar 2023 07:58:01 -0400 (EDT) |
branch: externals/autocrypt
commit f3a556f2167209673acbc5148b7d1cb26f71a6f3
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Revert autocrypt-accounts back into a user option
---
autocrypt.el | 44 +++++++++++++++++++++++++++-----------------
1 file changed, 27 insertions(+), 17 deletions(-)
diff --git a/autocrypt.el b/autocrypt.el
index 2b95200567..32819eecab 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -40,6 +40,27 @@
:link '(url-link "https://autocrypt.org/")
:prefix "autocrypt-")
+(defcustom autocrypt-accounts nil
+ "Alist of supported Autocrypt accounts.
+
+All elements have the form (MAIL FINGERPRINT PREFERENCE), where
+FINGERPRINT is the fingerprint of the PGP key that should be used
+by email address MAIL. PREFERENCE must be one of `mutual' or
+`no-preference', `none' (if no preference should be inserted into
+headers), or nil if this account should be temporarily disabled.
+
+This variable doesn't have to be manually specified, as
+activating the command `autocrypt-mode' should automatically
+configure it, or by calling `autocrypt-create-account'."
+ :type '(alist :key-type (string :tag "Address")
+ :value-type
+ (group (string :tag "Fingerprint")
+ (choice :tag "Encryption Preference"
+ (const :tag "None" none)
+ (const :tag "No Preference" no-preference)
+ (const :tag "Mutual" mutual)
+ (const :tag "Disable this Account" nil)))))
+
(defcustom autocrypt-do-gossip t
"Enable Autocrypt gossiping.
@@ -71,19 +92,6 @@ process \"Autocrypt-Gossip\" headers when received."
;;; INTERNAL STATE
-(defvar autocrypt-accounts nil
- "Alist of supported Autocrypt accounts.
-
-All elements have the form (MAIL FINGERPRINT PREFERENCE), where
-FINGERPRINT is the fingerprint of the PGP key that should be used
-by email address MAIL. PREFERENCE must be one of `mutual' or
-`no-preference', `none' (if no preference should be inserted into
-headers), or nil if this account should be temporarily disabled.
-
-This variable doesn't have to be manually specified, as
-activating the command `autocrypt-mode' should automatically
-configure it, or by calling `autocrypt-create-account'.")
-
(defvar autocrypt-peers nil
"List of known autocrypt peers.
@@ -91,7 +99,7 @@ Every member of this list has to be an instance of the
`autocrypt-peer' structure.")
(defconst autocrypt-save-variables
- '(autocrypt-accounts autocrypt-peers)
+ '(autocrypt-peers)
"List of variables to save to `autocrypt-save-data'.")
(defvar autocrypt-loaded-version) ;used by `autocrypt-load-data'
@@ -509,9 +517,11 @@ Will handle and remove \"Do-(Discourage-)Autocrypt\" if
found."
(let ((res (epg-context-result-for ctx 'generate-key)))
(unless res
(error "Could not determine fingerprint"))
- (push (list email (cdr (assq 'fingerprint (car res))) 'none)
- autocrypt-accounts))
- (autocrypt-save-data)
+ (customize-save-variable
+ 'autocrypt-accounts
+ (cons (list email (cdr (assq 'fingerprint (car res))) 'none)
+ autocrypt-accounts)
+ "Set by autocrypt.el"))
(message "Successfully generated key for %s, and added to key chain."
email)))
- [elpa] externals/autocrypt d771406544 28/94: Recognize mu4e modes in `autocrypt-get-mua', (continued)
- [elpa] externals/autocrypt d771406544 28/94: Recognize mu4e modes in `autocrypt-get-mua', ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 926b88e371 33/94: Use setup in README instead of use-package, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 56b7eea585 34/94: Use cl-generic to implement MUA specific code, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt c9d7c13f0d 36/94: Translate mu4e implementation to methods, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 9add1cc9b1 38/94: Autoload autocrypt-install for mu4e, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 211cb302dc 41/94: Add autocrypt-load-system, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 94bfdd049f 42/94: Fix autocrypt-gnus, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt ca711395c7 47/94: Add note explaining eql-specializiers for rmail-mode, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 37e14c3b92 60/94: Handle autocrypt-do-gossip as advertised, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 49f4a1a09e 62/94: Update README section on extending autocrypt.el, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt f3a556f216 66/94: Revert autocrypt-accounts back into a user option,
ELPA Syncer <=
- [elpa] externals/autocrypt 8cc4b86db3 67/94: Reduce minimal version to 24.3, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 222954754a 73/94: Elaborate the autocrypt-install and -uninstall docstrings, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt fe5a358566 85/94: Add missing `-hook` suffix in readme hook name, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 3ad5baba83 90/94: Add auto-generated package.el files to .gitignore, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 82ceacb63c 13/94: fixed package-lint issues, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 354b339cfe 16/94: fixed or removed (require 'autocrypt) statements, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 2f94c4398f 22/94: encrypt message before composing if possible, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 13f31c7e45 45/94: Fix autocrypt-rmail, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 8bdddf38ff 48/94: Save autocrypt data when modified, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 173d7616a8 49/94: Don't save value of autocrypt-saved-version, ELPA Syncer, 2023/03/26