* mml-sec.el (mml-secure-cust-record-keys):
[gnus] / lisp / ChangeLog
index b959538..5d9341f 100644 (file)
@@ -1,3 +1,417 @@
+2015-12-28  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mml-sec.el (mml-secure-bcc-is-safe):
+       Don't use split-string with 4th arg for old Emacsen compatibility.
+
+2015-12-27  Jens Lechtenboerger  <jens.lechtenboerger@fsfe.org>
+
+       * gnus-util.el (gnus-subsetp): New function.
+
+       * mml-sec.el: Fix warnings by adding autoloads (bug#18718).
+       (mml-secure-safe-bcc-list): New variable.
+       (mml-secure-is-encrypted-p, mml-secure-bcc-is-safe): New functions.
+
+2015-12-27  Jens Lechtenboerger  <jens.lechtenboerger@fsfe.org>
+
+       * mml-sec.el (mml-secure-cust-record-keys):
+       Make gnus-union use `equal' to compare items in lists.
+
+2015-12-23  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       Fix `gnus-union' so as to behave like `cl-union'.
+
+       * gnus-group.el (gnus-group-prepare-flat):
+       Make gnus-union use `equal' to compare items in lists.
+
+       * gnus-util.el (gnus-union): Make it behave like cl-union partially.
+
+2015-12-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * auth-source.el (auth-source-ensure-strings):
+       Don't make a list out of 't'.  (Bug#22188)
+
+2015-12-16  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * dgnushack.el (byte-optimize-apply): Make the use-mapcan advice work
+       for (function nconc) as well as (quote nconc).
+
+2015-12-17  Jens Lechtenboerger  <jens.lechtenboerger@fsfe.org>
+
+       * gnustest-mml-sec.el: Remove require cl.
+
+2015-12-16  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mml-sec.el (mml-secure-smime-sign-with-sender): Remove duplicate.
+       (mml-secure-cust-record-keys): Use gnus-union instead of cl-union.
+       (mml1991-cache-passphrase, mml1991-passphrase-cache-expiry):
+       Suppress byte-compile warning for old (X)Emacsen.
+       (mml-secure-check-sub-key):
+       Use gnus-string-match-p instead of string-match-p.
+       (mml-secure-select-preferred-keys):
+       Don't use mapcan that is a cl runtime function.
+
+       * mml-smime.el (mml-smime-cache-passphrase)
+       (mml-smime-passphrase-cache-expiry):
+       * mml1991.el (mml1991-cache-passphrase)
+       (mml1991-passphrase-cache-expiry):
+       * mml2015.el (mml2015-cache-passphrase)
+       (mml2015-passphrase-cache-expiry):
+       Fix version that indicates when those variables were made obsolete.
+
+2015-12-13  Jens Lechtenboerger  <jens.lechtenboerger@fsfe.org>
+
+       Refactor mml-smime.el, mml1991.el, mml2015.el
+
+       Cf. discussion on ding mailing list, messages in
+       <http://thread.gmane.org/gmane.emacs.gnus.general/86228>.
+       Common code from the three files mml-smime.el, mml1991.el, and
+       mml2015.el is moved to mml-sec.el.  Auxiliary functions are added
+       to gnus-util.el.
+
+       The code is supported by test cases with necessary test keys.
+
+       Documentation in message.texi is updated.
+
+       * gnus-util.el (gnus-test-list, gnus-subsetp, gnus-setdiff):
+       New functions.
+
+       * mml-sec.el: Require gnus-util and epg.
+       (epa--select-keys): Autoload.
+       (mml-signencrypt-style-alist, mml-secure-cache-passphrase): Doc fix.
+       (mml-secure-openpgp-signers): New user option;
+       make mml1991-signers and mml2015-signers obsolete aliases to it.
+       (mml-secure-smime-signers): New user option;
+       make mml-smime-signers an obsolete alias to it.
+       (mml-secure-openpgp-encrypt-to-self): New user option;
+       make mml1991-encrypt-to-self and mml2015-encrypt-to-self obsolete
+       aliases to it.
+       (mml-secure-smime-encrypt-to-self): New user option;
+       make mml-smime-encrypt-to-self an obsolete alias to it.
+       (mml-secure-openpgp-sign-with-sender): New user option;
+       make mml2015-sign-with-sender an obsolete alias to it.
+       (mml-secure-smime-sign-with-sender): New user option;
+       make mml-smime-sign-with-sender an obsolete alias to it.
+       (mml-secure-openpgp-always-trust): New user option;
+       make mml2015-always-trust an obsolete alias to it.
+       (mml-secure-fail-when-key-problem, mml-secure-key-preferences):
+       New user options.
+       (mml-secure-cust-usage-lookup, mml-secure-cust-fpr-lookup)
+       (mml-secure-cust-record-keys, mml-secure-cust-remove-keys)
+       (mml-secure-add-secret-key-id, mml-secure-clear-secret-key-id-list)
+       (mml-secure-cache-passphrase-p, mml-secure-cache-expiry-interval)
+       (mml-secure-passphrase-callback, mml-secure-check-user-id)
+       (mml-secure-secret-key-exists-p, mml-secure-check-sub-key)
+       (mml-secure-find-usable-keys, mml-secure-select-preferred-keys)
+       (mml-secure-fingerprint, mml-secure-filter-keys)
+       (mml-secure-normalize-cust-name, mml-secure-select-keys)
+       (mml-secure-select-keys-1, mml-secure-signer-names, mml-secure-signers)
+       (mml-secure-self-recipients, mml-secure-recipients)
+       (mml-secure-epg-encrypt, mml-secure-epg-sign): New functions.
+
+       * mml-smime.el: Require epg;
+       refactor declaration and autoloading of epg functions.
+       (mml-smime-use): Doc fix.
+       (mml-smime-cache-passphrase, mml-smime-passphrase-cache-expiry):
+       Obsolete.
+       (mml-smime-get-dns-cert, mml-smime-get-ldap-cert):
+       Use format instead of gnus-format-message.
+       (mml-smime-epg-secret-key-id-list): Remove variable.
+       (mml-smime-epg-passphrase-callback, mml-smime-epg-find-usable-key)
+       (mml-smime-epg-find-usable-secret-key): Remove functions.
+       (mml-smime-epg-sign, mml-smime-epg-encrypt): Refactor.
+
+       * mml1991.el (mml1991-cache-passphrase)
+       (mml1991-passphrase-cache-expiry): Obsolete.
+       (mml1991-epg-secret-key-id-list): Remove variable.
+       (mml1991-epg-passphrase-callback, mml1991-epg-find-usable-key)
+       (mml1991-epg-find-usable-secret-key): Remove functions.
+       (mml1991-epg-sign, mml1991-epg-encrypt): Refactor.
+
+       * mml2015.el (mml2015-cache-passphrase)
+       (mml2015-passphrase-cache-expiry): Obsolete.
+       (mml2015-epg-secret-key-id-list): Remove variable.
+       (mml2015-epg-passphrase-callback, mml2015-epg-check-user-id)
+       (mml2015-epg-check-sub-key, mml2015-epg-find-usable-key)
+       (mml2015-epg-find-usable-secret-key): Remove functions.
+       (mml2015-epg-decrypt, mml2015-epg-clear-decrypt, mml2015-epg-sign)
+       (mml2015-epg-encrypt): Refactor.
+
+       * tests/gnustest-gnus-util.el:
+       * tests/gnustest-mml-sec.README:
+       * tests/gnustest-mml-sec.el:
+       * tests/mml-gpghome/gpg-agent.conf:
+       * tests/mml-gpghome/trustlist.txt: New files.
+
+2015-12-04  Daiki Ueno  <ueno@gnu.org>
+
+       * qp.el (quoted-printable-encode-region): Bind `case-fold-search' to
+       nil when looking for "^From ".  Problem reported by Simon Josefsson.
+
+2015-12-04  Artur Malabarba  <bruce.connor.am@gmail.com>
+
+       * sasl-scram-rfc.el: Add a "Package:" header.
+
+2015-11-25  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nnml.el (nnml-retrieve-groups): Remove.  See:
+       <http://thread.gmane.org/gmane.emacs.gnus.general/86308> and
+       <http://thread.gmane.org/gmane.emacs.gnus.general/86321>
+
+2015-11-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix docstring quoting problems with ‘ '’
+
+       Problem reported by Artur Malabarba in:
+       http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html
+       Most of these fixes are to documentation; many involve fixing
+       longstanding quoting glitches that are independent of the
+       recent substitute-command-keys changes.  The changes to code are:
+       * gnus-mlspl.el (gnus-group-split-fancy):
+       * hashcash.el (hashcash-extra-generate-parameters):
+       * message.el (message-qmail-inject-args, message-cite-reply-position):
+       * mm-decode.el (mm-inline-large-images):
+       * mm-util.el (mm-xemacs-find-mime-charset-1):
+
+2015-11-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * mm-url.el (mm-url-form-encode-xwfu): Allow argument CHUNK to be nil.
+       (Bug#21881)
+
+2015-11-08  Michael Sperber  <mike@xemacs.org>
+
+       * gnus-sum.el (gnus-summary-backend-map): Bind B-backspace to
+       `gnus-summary-delete-article` in a way that also works on XEmacs.
+
+2015-11-01  Thomas Fitzsimmons  <fitzsim@fitzsim.org>
+
+       * ntlm.el: Change version to 2.0.0.
+
+2015-10-30  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Silence lexical-binding warnings
+
+       * auth-source.el (auth-source-netrc-use-gpg-tokens):
+       Simplify (symbol-value 'VAR) to just VAR.
+       (auth-source-backend-parse): Use make-instance.
+       (auth-source-search): Remove unused key args.
+       Remove unused vars `accessor-key' and `backend'.  Avoid `eval'.
+       (auth-source-search-backends): Use slot names rather than their initarg.
+       (auth-source-netrc-create):
+       (auth-source-delete):
+       (auth-source-secrets-create, auth-source-plstore-search)
+       (auth-source-macos-keychain-create, auth-source-macos-keychain-search)
+       (auth-source-plstore-create, auth-source-netrc-search)
+       (auth-source-netrc-parse): Remove unused key args.
+       (auth-source-forget+): Simplify the arglist.
+       (auth-source-macos-keychain-search-items)
+       (auth-source-token-passphrase-callback-function): Mark unused args.
+       (auth-source-epa-extract-gpg-token): Remove unused var `plain'.
+       (pp-escape-newlines): Declare.
+       (auto-source--symbol-keyword): New function.
+       (auth-source-plstore-create, auth-source-netrc-create)
+       (auth-source-netrc-normalize): Use it.
+       (auth-source-netrc-search): Don't pass :delete to
+       auth-source-netrc-parse since it doesn't use it.
+       (auth-source-plstore-create, auth-source-netrc-create): Use plist-get
+       symbol-value to index in keyword args.
+       (auth-source-macos-keychain-result-append): Avoid setq.
+       (auth-source-netrc-create): Remove unused vars `file' and `add'.
+       (auth-source-user-or-password): Remove unused var `cname'.
+
+2015-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-topic.el (gnus-topic-prepare-topic): Remove unused var `topic'.
+       (gnus-topic-remove-topic): Mark unused arg `hide'.
+       (gnus-tmp-header): Declare.
+       (gnus-topic-goto-missing-group): Remove unused var `entry'.
+       (gnus-topic-unmark-topic): Mark unused arg `dummy'.
+       (gnus-topic-copy-matching): Mark unused arg `copyp'.
+       Move initialization of `topic' into its declaration.
+
+2015-10-23  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * auth-source.el: Revert.
+
+       * auth-source.el: Add eval-and-compile to autoloads for
+       epg-context-set-passphrase-callback, epg-decrypt-string,
+       epg-encrypt-string, and epg-context-set-armor.
+
+2015-10-22  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mailcap.el (mailcap-mime-data): Remove fboundp checks.
+       (mailcap-viewer-passes-test): Do it instead.  Thanks to Stefan Monnier.
+
+2015-10-21  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix.
+
+2015-10-20  Michael Sperber  <mike@xemacs.org>
+
+       * mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which
+       does not exist on XEmacs.
+
+2015-10-18  Michael Sperber  <mike@xemacs.org>
+
+       * nnml.el (nnml-retrieve-groups, nnml-request-scan):
+       * nnmail.el (nnmail-get-new-mail-per-group):
+       (nnmail-get-new-mail-1): Unbreak `group' option for `mail-sources'.
+
+2015-10-18  Michael Sperber  <mike@xemacs.org>
+
+       * message.el (message-get-reply-headers): In addition to
+       `mail-dont-reply-to-names', bind `rmail-dont-reply-to-names', which is
+       used in XEmacs.
+
+2015-10-14  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * auth-source.el (auth-source-epa-make-gpg-token): Revert.
+
+2015-10-11  Nicolas Petton  <petton.nicolas@gmail.com>
+
+       * auth-source.el (auth-source-epa-make-gpg-token):
+       Replace an usage of `epg-context-set-armor' with `setf'.
+       (auth-source-do-debug, auth-source-do-trivia)
+       (auth-source-read-char-choice, auth-source-search)
+       (auth-source-pick-first-password, auth-source-netrc-parse)
+       (auth-source-netrc-search, auth-source-secrets-search)
+       (auth-source-macos-keychain-search)
+       (auth-source-macos-keychain-search-items, auth-source-plstore-search)
+       (auth-source-user-or-password): Use sharp-quoting with functions.
+
+2015-09-30  Wieland Hoffmann  <themineo@gmail.com>
+
+       * auth-source.el (auth-source-search): Clarify :create's meaning.
+
+2015-09-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Backslash cleanup in Elisp source files
+
+       This patch should not change behavior.  It typically omits backslashes
+       where they are redundant (e.g., in the string literal "^\$").
+       In a few places, insert backslashes where they make regular expressions
+       clearer: e.g., replace "^\*" (equivalent to "^*") with "^\\*", which
+       has the same effect as a regular expression.
+       Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
+       and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion
+       with RCS IDs, as that makes it clearer that the backslash is intended.
+       * auth-source.el (auth-source-secrets-search)
+       (auth-source-macos-keychain-search):
+       * gnus-art.el (gnus-mime-action-on-part)
+       (gnus-mime-display-multipart-related-as-mixed)
+       (gnus-button-mid-or-mail-heuristic-alist)
+       (gnus-button-mid-or-mail-heuristic, gnus-article-extend-url-button):
+       * gnus-bookmark.el (gnus-bookmark-bmenu-toggle-infos)
+       (gnus-bookmark-bookmark-inline-details, gnus-bookmark-bookmark-details)
+       (gnus-bookmark-alist, gnus-bookmark-name-from-full-record)
+       (gnus-bookmark-bmenu-mode, gnus-bookmark-delete):
+       * gnus-cus.el (gnus-group-customize):
+       * gnus-group.el (gnus-group-line-format, gnus-group-mode-line-format)
+       (gnus-group-jump-to-group-prompt, gnus-group-name-at-point):
+       * gnus-mlspl.el (gnus-group-split-fancy):
+       * gnus-registry.el (gnus-registry-prune-factor):
+       * gnus-salt.el (gnus-summary-pick-line-format):
+       * gnus-sieve.el (gnus-sieve-update, gnus-sieve-generate)
+       (gnus-sieve-script):
+       * gnus-util.el (gnus-directory-sep-char-regexp):
+       * gnus.el (gnus-message-archive-group, gnus-user-agent):
+       * message.el (message-archive-header, message-reply-headers)
+       (message-send-method-alist):
+       * mm-decode.el (mm-add-meta-html-tag):
+       * nndoc.el (nndoc-generate-lanl-gov-head):
+       * nnheader.el (nnheader-max-head-length):
+       * registry.el (registry-db, registry-prune):
+       * rfc1843.el (rfc1843-hzp-word-regexp)
+       (rfc1843-hzp-word-regexp-strictly):
+       * rfc2047.el (rfc2047-encoded-word-regexp)
+       (rfc2047-encoded-word-regexp-loose):
+
+       Fix several backslash typos in Elisp strings
+       * gnus-art.el (gnus-button-handle-library):
+       * gnus-group.el (gnus-read-ephemeral-gmane-group-url):
+       * nntp.el (nntp-via-shell-prompt, nntp-telnet-shell-prompt):
+       * spam-report.el (spam-report-gmane-regex):
+       Fix typo by replacing ‘\’ with ‘\\’ in a string literal.
+       For example, to get the regular expression ‘\.’ use the string
+       literal "\\.", not "\." (which is equivalent to ".").
+
+       * auth-source.el (auth-source-read-char-choice):
+       * nnmaildir.el (NOV example):
+       * registry.el (registry-search): Doc fix.
+
+2015-09-14  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-compat.el: Require overlay for XEmacs.
+
+2015-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * message.el (message-hide-headers): Bind inhibit-modification-hooks to
+       t rather than after-change-functions to nil.
+
+2015-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * time-date.el (time-to-seconds, time-less-p):
+       Mark unused vars with underscore.
+
+2015-09-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * time-date.el (with-decoded-time-value): Fix debug spec.
+
+2015-09-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * nnmairix.el (nnmairix-widget-create-query):
+       * time-date.el (format-seconds): Prefer grave quoting in source-code
+       strings used to generate help and diagnostics.
+
+2015-09-07  Thomas Fitzsimmons  <fitzsim@fitzsim.org>
+
+       * ntlm.el: Bump version to 2.00.  New maintainer.  Add comm keyword.
+
+2015-09-06  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * ntlm.el (ntlm-unibyte-string): New compatibility function.
+
+2015-09-06  Thomas Fitzsimmons  <fitzsim@fitzsim.org>
+
+       Add support for NTLMv2 authentication.
+       * ntlm.el (ntlm): New customization group.
+       (ntlm-compatibility-level): New defcustom.
+       (ntlm-compute-timestamp): New function.
+       (ntlm-generate-nonce): Likewise.
+       (ntlm-build-auth-response): Add support for NTLMv2 authentication.
+
+2015-09-05  Eric Abrahamsen  <eric@ericabrahamsen.net>
+
+       * nnimap.el (nnimap-request-group): Handle nil "info" arg.  This arg
+       isn't always passed in, check it's not nil before making it into a
+       list.  The active arg will also be nil if the group is new, check for
+       that.
+
+2015-09-04  Adam Sjøgren  <asjo@koldfront.dk>
+
+       * mail-source.el (mail-source-fetch-imap): allow :mailbox to be a list.
+
+2015-09-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gmm-utils.el (gmm-image-load-path-for-library):
+       * gnus-art.el (gnus-boring-article-headers, gnus-split-methods):
+       * gnus-registry.el (gnus-registry-split-strategy):
+       * gnus-start.el (gnus-check-new-newsgroups):
+       * gnus-sum.el (gnus-select-group-hook):
+       * gnus-uu.el (gnus-uu-user-archive-rules):
+       * gnus.el (gnus-message-archive-group, gnus-visual):
+       * message.el (message-cite-style):
+       * nnir.el (nnir-swish++-additional-switches)
+       (nnir-swish-e-additional-switches, nnir-hyrex-additional-switches)
+       (nnir-namazu-additional-switches, nnir-notmuch-additional-switches):
+       * nnmail.el (nnmail-split-methods, nnmail-expiry-wait-function):
+       * nntp.el (nntp-server-action-alist):
+       * tls.el (tls-checktrust):
+       Fix some more docstring etc. quoting problems.
+       Mostly these fixes prevent the transliteration of apostrophes
+       that should stay apostrophes.  Also, prefer curved quotes in
+       Bahá’í proper names, as that’s the preferred Bahá’í style and
+       these names are chock-full of non-ASCII characters anyway.
+
 2015-09-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        Escape ` and ' in doc
 
 See ChangeLog.2 for earlier changes.
 
-  Copyright (C) 2004-2015 Free Software Foundation, Inc.
+  Copyright (C) 2004-2016 Free Software Foundation, Inc.
 
   This file is part of GNU Emacs.