aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-01-23 19:02:24 +0000
committerChong Yidong2009-01-23 19:02:24 +0000
commita8f67b04836b9d3ed75f2138870ab04bf7fc1b34 (patch)
tree8e4d366db683a6fbd9452d1deda20ba2b5c3c698
parent4e231ada9270680844e5e1c15f5b727b870d792f (diff)
downloademacs-a8f67b04836b9d3ed75f2138870ab04bf7fc1b34.tar.gz
emacs-a8f67b04836b9d3ed75f2138870ab04bf7fc1b34.zip
(rmail-get-labels): Obey the MSG argument.
-rw-r--r--lisp/mail/rmail.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index dac06441f6d..19f32efc136 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2055,11 +2055,12 @@ If nil, that means the current message."
2055It is put in comma-separated form. 2055It is put in comma-separated form.
2056MSG, if non-nil, identifies the message number to use. 2056MSG, if non-nil, identifies the message number to use.
2057If nil, that means the current message." 2057If nil, that means the current message."
2058 (or msg (setq msg rmail-current-message))
2058 (let (blurb attr-names keywords) 2059 (let (blurb attr-names keywords)
2059 ;; Combine the message attributes and keywords 2060 ;; Combine the message attributes and keywords
2060 ;; into a comma-separated list. 2061 ;; into a comma-separated list.
2061 (setq attr-names (rmail-get-attr-names rmail-current-message) 2062 (setq attr-names (rmail-get-attr-names msg)
2062 keywords (rmail-get-keywords rmail-current-message)) 2063 keywords (rmail-get-keywords msg))
2063 (if (string= keywords "") 2064 (if (string= keywords "")
2064 (setq keywords nil)) 2065 (setq keywords nil))
2065 (cond 2066 (cond