Commit 872b1b16 authored by Glenn Morris's avatar Glenn Morris

Fix message-mode bug with fcc to Rmail buffers.

* lisp/gnus/message.el (message-output): Use gnus-output-to-rmail if a
buffer is visiting the fcc file in rmail-mode.
parent f06d3d36
2010-09-21 Glenn Morris <rgm@gnu.org>
* message.el (message-output): Use gnus-output-to-rmail if a buffer is
visiting the fcc file in rmail-mode.
2010-04-22 Andreas Seltenreich <seltenreich@gmx.de>
* message.el (message-generate-headers): Record insertion of optional
......
......@@ -5311,8 +5311,14 @@ Otherwise, generate and save a value for `canlock-password' first."
(defun message-output (filename)
"Append this article to Unix/babyl mail file FILENAME."
(if (and (file-readable-p filename)
(mail-file-babyl-p filename))
(if (or (and (file-readable-p filename)
(mail-file-babyl-p filename))
;; gnus-output-to-mail does the wrong thing with live, mbox
;; Rmail buffers in Emacs 23.
;; http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597255
(let ((buff (find-buffer-visiting filename)))
(and buff (with-current-buffer buff
(eq major-mode 'rmail-mode)))))
(gnus-output-to-rmail filename t)
(gnus-output-to-mail filename t)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment