]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/mail/rmail.el (rmail-simplified-subject): Dodge relint nag
authorMattias Engdegård <mattiase@acm.org>
Fri, 28 May 2021 09:48:00 +0000 (11:48 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 29 May 2021 07:18:01 +0000 (09:18 +0200)
lisp/mail/rmail.el

index 7ef3754dad15deb5cb4eddef5a9309de1d09f95d..e479a8e9b4a5ba57a57e51f9644b464e1ae008f6 100644 (file)
@@ -3360,7 +3360,7 @@ tags such as [tag]."
     ;; Corporate mailing systems sometimes add `[External] :'; if that happened,
     ;; delete everything up thru there.  Empirically, that deletion makes
     ;; the Subject match the other messages in the thread.
-    (if (string-match "[[]external][ \t\n]*:" subject)
+    (if (string-match "\\[external][ \t\n]*:" subject)
         (setq subject (substring subject (match-end 0))))
     (setq subject (rfc2047-decode-string subject))
     (setq subject (replace-regexp-in-string regexp "" subject))