comparison lisp/mail/rmail.el @ 8384:4c88569aaa73

(rmail-display-summary): New variable. (rmail): Call rmail-summary at the end if rmail-display-summary is set. (rmail-highlight-face): New variable. (rmail-highlight-headers): Use it if non-nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 30 Jul 1994 07:46:03 +0000
parents d2b1b642f4e6
children 4d3ae3aff631
comparison
equal deleted inserted replaced
8383:d2b1b642f4e6 8384:4c88569aaa73
71 *Regexp to match Header fields that Rmail should normally hide.") 71 *Regexp to match Header fields that Rmail should normally hide.")
72 72
73 ;;;###autoload 73 ;;;###autoload
74 (defvar rmail-highlighted-headers "^From:\\|^Subject:" "\ 74 (defvar rmail-highlighted-headers "^From:\\|^Subject:" "\
75 *Regexp to match Header fields that Rmail should normally highlight. 75 *Regexp to match Header fields that Rmail should normally highlight.
76 A value of nil means don't highlight.") 76 A value of nil means don't highlight.
77 See also `rmail-highlight-face'.")
77 78
78 ;;;###autoload 79 ;;;###autoload
79 (defvar rmail-highlight-face nil "\ 80 (defvar rmail-highlight-face nil "\
80 *Face used by Rmail for highlighting headers.") 81 *Face used by Rmail for highlighting headers.")
81 82
118 "If non nil, a filter function for new messages in RMAIL. 119 "If non nil, a filter function for new messages in RMAIL.
119 Called with region narrowed to the message, including headers.") 120 Called with region narrowed to the message, including headers.")
120 121
121 (defvar rmail-reply-prefix "Re: " 122 (defvar rmail-reply-prefix "Re: "
122 "String to prepend to Subject line when replying to a message.") 123 "String to prepend to Subject line when replying to a message.")
124
125 (defvar rmail-display-summary nil
126 "If non nil, the summary buffer is always displayed.")
123 127
124 (defvar rmail-mode-map nil) 128 (defvar rmail-mode-map nil)
125 129
126 (defvar rmail-inbox-list nil) 130 (defvar rmail-inbox-list nil)
127 (defvar rmail-keywords nil) 131 (defvar rmail-keywords nil)
219 Type \\[describe-mode] once editing that file, for a list of RMAIL commands. 223 Type \\[describe-mode] once editing that file, for a list of RMAIL commands.
220 224
221 May be called with file name as argument; then performs rmail editing on 225 May be called with file name as argument; then performs rmail editing on
222 that file, but does not copy any new mail into the file. 226 that file, but does not copy any new mail into the file.
223 Interactively, if you supply a prefix argument, then you 227 Interactively, if you supply a prefix argument, then you
224 have a chance to specify a file name with the minibuffer." 228 have a chance to specify a file name with the minibuffer.
229
230 If `rmail-display-summary' is non-nil, make a summary for this RMAIL file."
225 (interactive (if current-prefix-arg 231 (interactive (if current-prefix-arg
226 (list (read-file-name "Run rmail on RMAIL file: " 232 (list (read-file-name "Run rmail on RMAIL file: "
227 nil nil t)))) 233 nil nil t))))
228 (or rmail-default-file 234 (or rmail-default-file
229 (setq rmail-default-file (expand-file-name "~/xmail"))) 235 (setq rmail-default-file (expand-file-name "~/xmail")))
262 (rmail-get-new-mail)) 268 (rmail-get-new-mail))
263 ;; Show the first unseen message, which might be from a previous session 269 ;; Show the first unseen message, which might be from a previous session
264 ;; or might have been just read in by rmail-get-new-mail. Must 270 ;; or might have been just read in by rmail-get-new-mail. Must
265 ;; determine already unseen messages first, as rmail-get-new-mail 271 ;; determine already unseen messages first, as rmail-get-new-mail
266 ;; positions on the first new message, thus marking it as seen. 272 ;; positions on the first new message, thus marking it as seen.
267 (rmail-show-message existing-unseen)))) 273 (rmail-show-message existing-unseen))
274 (if rmail-display-summary (rmail-summary))))
268 275
269 ;; Given the value of MAILPATH, return a list of inbox file names. 276 ;; Given the value of MAILPATH, return a list of inbox file names.
270 ;; This is turned off because it is not clear that the user wants 277 ;; This is turned off because it is not clear that the user wants
271 ;; all these inboxes to feed into the primary rmail file. 278 ;; all these inboxes to feed into the primary rmail file.
272 ; (defun rmail-convert-mailpath (string) 279 ; (defun rmail-convert-mailpath (string)