diff options
| author | Glenn Morris | 2015-05-27 23:16:29 -0700 |
|---|---|---|
| committer | Glenn Morris | 2015-05-27 23:16:29 -0700 |
| commit | 2363d498fb99bda0b5030c8c1af2925209bb60e5 (patch) | |
| tree | 370bde885defb3291b4de1c42574618285077d10 | |
| parent | 8d216325eacdb164011f0e0c59974ec372471599 (diff) | |
| download | emacs-2363d498fb99bda0b5030c8c1af2925209bb60e5.tar.gz emacs-2363d498fb99bda0b5030c8c1af2925209bb60e5.zip | |
* lisp/mail/rmailsum.el (rmail-summary-by-recipients)
(rmail-summary-by-topic, rmail-summary-by-senders):
No longer strip leading/trailing whitespace.
| -rw-r--r-- | lisp/mail/rmailsum.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index ed4d58c9505..eeb42e81c6d 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -298,9 +298,7 @@ RECIPIENTS is a regular expression." | |||
| 298 | (rmail-new-summary | 298 | (rmail-new-summary |
| 299 | (concat "recipients " recipients) | 299 | (concat "recipients " recipients) |
| 300 | (list 'rmail-summary-by-recipients recipients primary-only) | 300 | (list 'rmail-summary-by-recipients recipients primary-only) |
| 301 | 'rmail-message-recipients-p | 301 | 'rmail-message-recipients-p recipients primary-only)) |
| 302 | (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" recipients) | ||
| 303 | primary-only)) | ||
| 304 | 302 | ||
| 305 | (defun rmail-message-recipients-p (msg recipients &optional primary-only) | 303 | (defun rmail-message-recipients-p (msg recipients &optional primary-only) |
| 306 | (rmail-apply-in-message msg 'rmail-message-recipients-p-1 | 304 | (rmail-apply-in-message msg 'rmail-message-recipients-p-1 |
| @@ -379,9 +377,7 @@ SUBJECT is a regular expression." | |||
| 379 | (rmail-new-summary | 377 | (rmail-new-summary |
| 380 | (concat "about " subject) | 378 | (concat "about " subject) |
| 381 | (list 'rmail-summary-by-topic subject whole-message) | 379 | (list 'rmail-summary-by-topic subject whole-message) |
| 382 | 'rmail-message-subject-p | 380 | 'rmail-message-subject-p subject whole-message)) |
| 383 | (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" subject) | ||
| 384 | whole-message)) | ||
| 385 | 381 | ||
| 386 | (defun rmail-message-subject-p (msg subject &optional whole-message) | 382 | (defun rmail-message-subject-p (msg subject &optional whole-message) |
| 387 | (if whole-message | 383 | (if whole-message |
| @@ -397,9 +393,7 @@ SENDERS is a regular expression." | |||
| 397 | (interactive "sSenders to summarize by: ") | 393 | (interactive "sSenders to summarize by: ") |
| 398 | (rmail-new-summary | 394 | (rmail-new-summary |
| 399 | (concat "senders " senders) | 395 | (concat "senders " senders) |
| 400 | (list 'rmail-summary-by-senders senders) | 396 | (list 'rmail-summary-by-senders senders) 'rmail-message-senders-p senders)) |
| 401 | 'rmail-message-senders-p | ||
| 402 | (replace-regexp-in-string "\\`[ \t]*\\(.*?\\)[ \t]*\\'" "\\1" senders))) | ||
| 403 | 397 | ||
| 404 | (defun rmail-message-senders-p (msg senders) | 398 | (defun rmail-message-senders-p (msg senders) |
| 405 | (string-match senders (or (rmail-get-header "From" msg) ""))) | 399 | (string-match senders (or (rmail-get-header "From" msg) ""))) |