Function: nnmairix-replace-illegal-chars
nnmairix-replace-illegal-chars is a byte-compiled function defined in
nnmairix.el.gz.
Signature
(nnmairix-replace-illegal-chars HEADER)
Documentation
Replace illegal characters in HEADER for mairix query.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnmairix.el.gz
(defun nnmairix-replace-illegal-chars (header)
"Replace illegal characters in HEADER for mairix query."
(when 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))