summaryrefslogtreecommitdiff
path: root/lisp/gnus/spam.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-02-11 16:13:08 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-02-11 16:13:08 +1100
commit21cfd14d54370cddc1160d30bc47e17c5ac3a162 (patch)
tree1ed08374d1e42dd89d674a2ef840097ea3d4d905 /lisp/gnus/spam.el
parent16b7e605f32862c592ffd1134079b91e3ee4ef91 (diff)
downloademacs-21cfd14d54370cddc1160d30bc47e17c5ac3a162.tar.gz
gnus-replace-in-string -> replace-regexp-in-string
* lisp/gnus/gnus-util.el (gnus-replace-in-string): Declare obsolete. Transform all usages of it into replace-regexp-in-string. * lisp/gnus/mailcap.el (mailcap-replace-in-string): Remove.
Diffstat (limited to 'lisp/gnus/spam.el')
-rw-r--r--lisp/gnus/spam.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el
index ab0584fdcf6..39181eaa62f 100644
--- a/lisp/gnus/spam.el
+++ b/lisp/gnus/spam.el
@@ -1199,7 +1199,7 @@ Note this has to be fast."
(if header-content
(cond
((eq header 'X-Spam-Status)
- (string-to-number (gnus-replace-in-string
+ (string-to-number (replace-regexp-in-string
header-content
spam-spamassassin-score-regexp
"\\1")))
@@ -1207,8 +1207,8 @@ Note this has to be fast."
((string-match "( pR: \\([0-9.-]+\\)" header-content)
(- (string-to-number (match-string 1 header-content))))
((eq header 'X-Bogosity)
- (string-to-number (gnus-replace-in-string
- (gnus-replace-in-string
+ (string-to-number (replace-regexp-in-string
+ (replace-regexp-in-string
header-content
".*spamicity=" "")
",.*" "")))