aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmailsum.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 2ee96247aa0..602328b3cf8 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -109,6 +109,22 @@ SUBJECT is a string of regexps separated by commas."
109 (goto-char (point-min)) 109 (goto-char (point-min))
110 (if whole-message (re-search-forward subject nil t) 110 (if whole-message (re-search-forward subject nil t)
111 (string-match subject (or (mail-fetch-field "Subject") "")) ))) 111 (string-match subject (or (mail-fetch-field "Subject") "")) )))
112
113(defun rmail-summary-by-senders (senders)
114 "Display a summary of all messages with the given SENDERS.
115SENDERS is a string of names separated by commas."
116 (interactive "sSenders to summarize by: ")
117 (rmail-new-summary
118 (concat "senders " senders)
119 'rmail-message-senders-p
120 (mail-comma-list-regexp senders)))
121
122(defun rmail-message-senders-p (msg senders)
123 (save-restriction
124 (goto-char (rmail-msgbeg msg))
125 (search-forward "\n*** EOOH ***\n")
126 (narrow-to-region (point) (progn (search-forward "\n\n") (point)))
127 (string-match senders (or (mail-fetch-field "From") ""))))
112 128
113;; General making of a summary buffer. 129;; General making of a summary buffer.
114 130