aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmailsum.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 82dc56ae64f..08f1fc4d89d 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -421,6 +421,8 @@ the message being processed."
421 (setq result (concat "{" result "}"))) 421 (setq result (concat "{" result "}")))
422 result)) 422 result))
423 423
424(autoload 'rmail-make-label "rmailkwd")
425
424(defun rmail-get-summary-labels () 426(defun rmail-get-summary-labels ()
425 "Return a string wrapped in curly braces with the current message labels. 427 "Return a string wrapped in curly braces with the current message labels.
426Returns nil if there are no labels. The current buffer must 428Returns nil if there are no labels. The current buffer must
@@ -429,7 +431,10 @@ processed."
429 (let ((labels (mail-fetch-field rmail-keyword-header))) 431 (let ((labels (mail-fetch-field rmail-keyword-header)))
430 (and labels 432 (and labels
431 (not (string-equal labels "")) 433 (not (string-equal labels ""))
432 (format "{ %s } " labels)))) 434 (progn
435 ;; Intern so that rmail-read-label can offer completion.
436 (mapc 'rmail-make-label (split-string labels ", "))
437 (format "{ %s } " labels)))))
433 438
434(defun rmail-create-summary (msgnum deleted unseen lines) 439(defun rmail-create-summary (msgnum deleted unseen lines)
435 "Return the summary line for message MSGNUM. 440 "Return the summary line for message MSGNUM.