2010-10-03 Glenn Morris <rgm@gnu.org>
+ * 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.
(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.