diff options
| author | Richard M. Stallman | 1993-06-04 03:00:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-04 03:00:25 +0000 |
| commit | 801ddffa859f79c77171aaa55b63a6a07d24c29f (patch) | |
| tree | 26077347642ccd5e29df51a9b786e7a83ce83e29 | |
| parent | 230c6b36449eaf757a67f55210c68ed599743649 (diff) | |
| download | emacs-801ddffa859f79c77171aaa55b63a6a07d24c29f.tar.gz emacs-801ddffa859f79c77171aaa55b63a6a07d24c29f.zip | |
(mail-do-fcc): Omit first 2 lines when appending to an RMAIL buffer.
| -rw-r--r-- | lisp/mail/sendmail.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index cdf2ba2da32..c0d46324864 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -414,7 +414,9 @@ the user from the mailer." | |||
| 414 | (if buffer | 414 | (if buffer |
| 415 | ;; File is present in a buffer => append to that buffer. | 415 | ;; File is present in a buffer => append to that buffer. |
| 416 | (let ((curbuf (current-buffer)) | 416 | (let ((curbuf (current-buffer)) |
| 417 | (beg (point-min)) (end (point-max))) | 417 | (beg (point-min)) (end (point-max)) |
| 418 | (beg2 (save-excursion (goto-char (point-min)) | ||
| 419 | (forward-line 2) (point)))) | ||
| 418 | (save-excursion | 420 | (save-excursion |
| 419 | (set-buffer buffer) | 421 | (set-buffer buffer) |
| 420 | ;; Keep the end of the accessible portion at the same place | 422 | ;; Keep the end of the accessible portion at the same place |
| @@ -436,7 +438,8 @@ the user from the mailer." | |||
| 436 | (insert "\C-l\n0, unseen,,\n*** EOOH ***\n" | 438 | (insert "\C-l\n0, unseen,,\n*** EOOH ***\n" |
| 437 | "From: " (user-login-name) "\n" | 439 | "From: " (user-login-name) "\n" |
| 438 | "Date: " (current-time-string) "\n") | 440 | "Date: " (current-time-string) "\n") |
| 439 | (insert-buffer-substring curbuf beg end) | 441 | ;; Omit the blank line and the Unix From line. |
| 442 | (insert-buffer-substring curbuf beg2 end) | ||
| 440 | (insert "\n\C-_") | 443 | (insert "\n\C-_") |
| 441 | (rmail-set-message-counters)) | 444 | (rmail-set-message-counters)) |
| 442 | (insert-buffer-substring curbuf beg end))) | 445 | (insert-buffer-substring curbuf beg end))) |