0001-preferences-disable-pEpAutoDownload-by-default.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 03993708d4d1fb327f102f45d7aa4e9c4fa8237b Mon Sep 17 00:00:00 2001
  2. From: Eli Schwartz <eschwartz@archlinux.org>
  3. Date: Thu, 10 Jan 2019 11:38:38 -0500
  4. Subject: [PATCH] preferences: disable pEpAutoDownload by default and avoid p=p
  5. Distributions should not automatically download this untrusted code;
  6. should be opt-in by users or be packaged separately.
  7. Additionally, we are an advanced distro and should generally avoid p=p
  8. in favor of the user's PGP keys. Moreover, p=p is undocumented and seems
  9. to lead to unintuitive use of the wrong PGP keys in new installations.
  10. ---
  11. package/prefs/defaultPrefs.js | 4 ++--
  12. 1 file changed, 2 insertions(+), 2 deletions(-)
  13. diff --git a/package/prefs/defaultPrefs.js b/package/prefs/defaultPrefs.js
  14. index d5ca1249..f7ddc864 100755
  15. --- a/package/prefs/defaultPrefs.js
  16. +++ b/package/prefs/defaultPrefs.js
  17. @@ -14,7 +14,7 @@
  18. // 0: force using Enigmail
  19. // 1: automatic mode (use pEp if Enigmail and S/MIME are not configured for any identity)
  20. // 2: force using pEp
  21. -pref("extensions.enigmail.juniorMode", 1);
  22. +pref("extensions.enigmail.juniorMode", 0);
  23. // the last configured Enigmail version
  24. pref("extensions.enigmail.configuredVersion", "");
  25. @@ -204,7 +204,7 @@ pref("extensions.enigmail.warnDownloadContactKeys", true);
  26. pref("extensions.enigmail.wrapHtmlBeforeSend", true);
  27. // automatically download pepmda if it is available (without askin user)
  28. -pref("extensions.enigmail.pEpAutoDownload", true);
  29. +pref("extensions.enigmail.pEpAutoDownload", false);
  30. // holds the last result of the last check for pEp updates
  31. pref("extensions.enigmail.pEpLastUpdate", 0);
  32. --
  33. 2.23.0