Article View: gnu.emacs.vm.bug
Article #656vm-update-composition-buffer-name doesn't consider BCC: header
From: Kevin Rodgers
Date: Thu, 18 Nov 2004 22:54
Date: Thu, 18 Nov 2004 22:54
46 lines
2720 bytes
2720 bytes
The ellipsis in the buffer and frame name is a subtle reminder that the
message you're composing is addressed to multiple recipients. So it
should consider the BCC header as well as To and CC. Here's a patch:
*** vm-reply.el.orig Mon Aug 18 20:17:52 2003
--- vm-reply.el Thu Nov 18 15:24:48 2004
***************
*** 1521,1526 ****
--- 1521,1527 ----
(buffer-name))))
(let ((to (mail-fetch-field "To"))
(cc (mail-fetch-field "Cc"))
+ (bcc (mail-fetch-field "Bcc"))
(curbufname (buffer-name))
(deactivate-mark)
fmt newbufname
***************
*** 1528,1538 ****
(cond (vm-reply-list (setq fmt "reply to %s%s"))
(t (setq fmt "mail to %s%s")))
(setq to (vm-parse-addresses to)
! cc (vm-parse-addresses cc))
! (if (or (cdr to)
! (and (car to) (car cc)))
(setq ellipsis ", ..."))
! (setq newbufname (or (car to) (car cc) "foo (?)")
newbufname (funcall vm-chop-full-name-function newbufname)
newbufname (or (car newbufname) (car (cdr newbufname)))
newbufname (format fmt newbufname ellipsis))
--- 1529,1541 ----
(cond (vm-reply-list (setq fmt "reply to %s%s"))
(t (setq fmt "mail to %s%s")))
(setq to (vm-parse-addresses to)
! cc (vm-parse-addresses cc)
! bcc (vm-parse-addresses bcc))
! (if (or (cdr to) (cdr cc) (cdr bcc)
! ;; each newly allocated list has at most 1 element:
! (> (length (nconc to cc bcc)) 1))
(setq ellipsis ", ..."))
! (setq newbufname (or (car to) (car cc) (car bcc) "foo (?)")
newbufname (funcall vm-chop-full-name-function newbufname)
newbufname (or (car newbufname) (car (cdr newbufname)))
newbufname (format fmt newbufname ellipsis))
--
Kevin Rodgers
Technical Details
Message-ID:
<304nh4F2qe839U1@uni-berlin.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f6829,c7a8693fcb41d509,start X-Google-Attributes: gidf6829,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Kevin Rodgers <ihs_4664@yahoo.com> Newsgroups: gnu.emacs.vm.bug Subject: vm-update-composition-buffer-name doesn't consider BCC: header Date: Thu, 18 Nov 2004 15:54:23 -0700 Lines: 46 Message-ID: <304nh4F2qe839U1@uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de fXcDh89aJGuSzqtgQ2nvTADdtrLK289RoIbLE7xtIEDEEPJM8= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en