]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mail/rmailsum.el (rmail-summary-by-recipients)
authorGlenn Morris <rgm@gnu.org>
Thu, 28 May 2015 06:16:29 +0000 (23:16 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 28 May 2015 06:16:29 +0000 (23:16 -0700)
(rmail-summary-by-topic, rmail-summary-by-senders):
No longer strip leading/trailing whitespace.

lisp/mail/rmailsum.el

index ed4d58c9505684658719a658f4ad86ba3fc8df8a..eeb42e81c6d0960b6561589604ba7bbec0830d35 100644 (file)
@@ -298,9 +298,7 @@ RECIPIENTS is a regular expression."
   (rmail-new-summary
    (concat "recipients " recipients)
    (list 'rmail-summary-by-recipients recipients primary-only)
-   'rmail-message-recipients-p
-   (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" recipients)
-   primary-only))
+   'rmail-message-recipients-p recipients primary-only))
 
 (defun rmail-message-recipients-p (msg recipients &optional primary-only)
   (rmail-apply-in-message msg 'rmail-message-recipients-p-1
@@ -379,9 +377,7 @@ SUBJECT is a regular expression."
   (rmail-new-summary
    (concat "about " subject)
    (list 'rmail-summary-by-topic subject whole-message)
-   'rmail-message-subject-p
-   (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" subject)
-   whole-message))
+   'rmail-message-subject-p subject whole-message))
 
 (defun rmail-message-subject-p (msg subject &optional whole-message)
   (if whole-message
@@ -397,9 +393,7 @@ SENDERS is a regular expression."
   (interactive "sSenders to summarize by: ")
   (rmail-new-summary
    (concat "senders " senders)
-   (list 'rmail-summary-by-senders senders)
-   'rmail-message-senders-p
-   (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" senders)))
+   (list 'rmail-summary-by-senders senders) 'rmail-message-senders-p senders))
 
 (defun rmail-message-senders-p (msg senders)
   (string-match senders (or (rmail-get-header "From" msg) "")))