* rmail-summary-by-topic
@ 2006-01-07 15:23 Alex Schroeder
0 siblings, 0 replies; only message in thread
From: Alex Schroeder @ 2006-01-07 15:23 UTC (permalink / raw)
I think rmail-summary-by-topic should use the current subject as a
default -- this would quickly provide the kind of "conversation view"
that Gmail offers, without the need to do threading.
I therefore suggest the following patch. If nobody objects, I can
apply it, too.
*** rmailsum.el 24 Sep 2005 15:43:58 +0200 1.139
--- rmailsum.el 07 Jan 2006 16:17:09 +0100
***************
*** 132,138 ****
but if WHOLE-MESSAGE is non-nil (prefix arg given),
look in the whole message.
SUBJECT is a string of regexps separated by commas."
! (interactive "sTopics to summarize by: \nP")
(rmail-new-summary
(concat "about " subject)
(list 'rmail-summary-by-topic subject whole-message)
--- 132,146 ----
but if WHOLE-MESSAGE is non-nil (prefix arg given),
look in the whole message.
SUBJECT is a string of regexps separated by commas."
! (interactive
! (let* ((subject (with-current-buffer rmail-buffer
! (mail-fetch-field "Subject")))
! (prompt (concat "Topics to summarize by (regexp"
! (if subject ", default current subject" "")
! "): ")))
! (when (string-match rmail-reply-regexp subject)
! (setq subject (substring subject (match-end 0))))
! (list (read-string prompt nil nil subject) current-prefix-arg)))
(rmail-new-summary
(concat "about " subject)
(list 'rmail-summary-by-topic subject whole-message)
--
http://www.emacswiki.org/alex/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-07 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-07 15:23 rmail-summary-by-topic Alex Schroeder
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).