aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-12-10 20:56:32 +0000
committerChong Yidong2008-12-10 20:56:32 +0000
commitaecb916e99ee969240dc57ace33e819420a9e776 (patch)
tree98cfbcec2e562bb3bc271765616d36b48a7b4f09
parentf1b13b5bea1bda48883d73b3633c1c23475d318b (diff)
downloademacs-aecb916e99ee969240dc57ace33e819420a9e776.tar.gz
emacs-aecb916e99ee969240dc57ace33e819420a9e776.zip
(pmail-output-to-pmail-file): Don't call
pmail-insert-pmail-file-header.
-rw-r--r--lisp/mail/pmailout.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/mail/pmailout.el b/lisp/mail/pmailout.el
index f24030e3517..1814472868f 100644
--- a/lisp/mail/pmailout.el
+++ b/lisp/mail/pmailout.el
@@ -113,11 +113,11 @@ Set `pmail-default-file' to this name as well as returning it."
113;;; look at them before you change the calling method. 113;;; look at them before you change the calling method.
114;;;###autoload 114;;;###autoload
115(defun pmail-output-to-pmail-file (file-name &optional count stay) 115(defun pmail-output-to-pmail-file (file-name &optional count stay)
116 "Append the current message to an Pmail file named FILE-NAME. 116 "Append the current message to a Babyl file named FILE-NAME.
117If the file does not exist, ask if it should be created. 117If the file does not exist, ask if it should be created.
118If file is being visited, the message is appended to the Emacs 118If file is being visited, the message is appended to the Emacs
119buffer visiting that file. 119buffer visiting that file.
120If the file exists and is not an Pmail file, the message is 120If the file exists and is not a Babyl file, the message is
121appended in inbox format, the same way `pmail-output' does it. 121appended in inbox format, the same way `pmail-output' does it.
122 122
123The default file name comes from `pmail-default-pmail-file', 123The default file name comes from `pmail-default-pmail-file',
@@ -146,7 +146,13 @@ message up instead of moving forward to the next non-deleted message."
146 (let ((file-buffer (create-file-buffer file-name))) 146 (let ((file-buffer (create-file-buffer file-name)))
147 (save-excursion 147 (save-excursion
148 (set-buffer file-buffer) 148 (set-buffer file-buffer)
149 (pmail-insert-pmail-file-header) 149 (let ((buffer-read-only nil))
150 (insert "BABYL OPTIONS: -*- pmail -*-
151Version: 5
152Labels:
153Note: This is the header of an pmail file.
154Note: If you are seeing it in pmail,
155Note: it means the file has no messages in it.\n\^_"))
150 (let ((require-final-newline nil) 156 (let ((require-final-newline nil)
151 (coding-system-for-write 157 (coding-system-for-write
152 (or pmail-file-coding-system 158 (or pmail-file-coding-system