diff options
| author | Chong Yidong | 2008-12-10 20:56:32 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-12-10 20:56:32 +0000 |
| commit | aecb916e99ee969240dc57ace33e819420a9e776 (patch) | |
| tree | 98cfbcec2e562bb3bc271765616d36b48a7b4f09 | |
| parent | f1b13b5bea1bda48883d73b3633c1c23475d318b (diff) | |
| download | emacs-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.el | 12 |
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. |
| 117 | If the file does not exist, ask if it should be created. | 117 | If the file does not exist, ask if it should be created. |
| 118 | If file is being visited, the message is appended to the Emacs | 118 | If file is being visited, the message is appended to the Emacs |
| 119 | buffer visiting that file. | 119 | buffer visiting that file. |
| 120 | If the file exists and is not an Pmail file, the message is | 120 | If the file exists and is not a Babyl file, the message is |
| 121 | appended in inbox format, the same way `pmail-output' does it. | 121 | appended in inbox format, the same way `pmail-output' does it. |
| 122 | 122 | ||
| 123 | The default file name comes from `pmail-default-pmail-file', | 123 | The 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 -*- | ||
| 151 | Version: 5 | ||
| 152 | Labels: | ||
| 153 | Note: This is the header of an pmail file. | ||
| 154 | Note: If you are seeing it in pmail, | ||
| 155 | Note: 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 |