From 0f810fbf3e409ad01353c8a62e727da4f5e42455 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 2 Oct 2010 19:12:55 -0700 Subject: [PATCH] * lisp/gnus/nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code. --- lisp/gnus/ChangeLog | 2 ++ lisp/gnus/nnmairix.el | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 24f71d5a674..446d3877d31 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,5 +1,7 @@ 2010-10-03 Glenn Morris + * nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code. + * smime.el (smime-cert-by-ldap-1): Drop Emacs 21 code. * gnus-art.el (gnus-next-page-map): Drop Emacs 20 compat cruft. diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 9672c04b494..0b7f0a40bd3 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el @@ -1572,14 +1572,11 @@ See %s for details" proc nnmairix-mairix-output-buffer))) (defun nnmairix-replace-illegal-chars (header) "Replace illegal characters in HEADER for mairix query." (when header - (if (> emacs-major-version 20) - (while (string-match "[^-.@/,& [:alnum:]]" header) - (setq header (replace-match "" t t header))) - (while (string-match "[[]{}:<>]" header) - (setq header (replace-match "" t t header)))) + (while (string-match "[^-.@/,& [:alnum:]]" header) + (setq header (replace-match "" t t header))) (while (string-match "[-& ]" header) (setq header (replace-match "," t t header))) - header)) + header)) (defun nnmairix-group-toggle-parameter (group parameter description &optional par) "Toggle on GROUP a certain PARAMETER. -- 2.39.5