diff options
| author | Richard M. Stallman | 1993-12-23 03:24:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 03:24:31 +0000 |
| commit | d2fc297c3286c2eed26a3141417762f720b4e2e1 (patch) | |
| tree | f73a88f7a85d0ddaf304469b571f9d3e43c9da92 | |
| parent | e3683fc7671f2ef3a6e910467f6e0ebae7674e51 (diff) | |
| download | emacs-d2fc297c3286c2eed26a3141417762f720b4e2e1.tar.gz emacs-d2fc297c3286c2eed26a3141417762f720b4e2e1.zip | |
(rmail-quit): Expunge without updating summary.
(rmail-resend): Delete more than one Sender,
but only in the headers, not in the body.
(rmail-resend): Doc fix.
(rmail): Doc fix.
| -rw-r--r-- | lisp/mail/rmail.el | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index e6fc530369f..bbbe818ca7d 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -198,8 +198,10 @@ Moves messages into file named by `rmail-file-name' (a babyl format file) | |||
| 198 | and edits that file in RMAIL Mode. | 198 | and edits that file in RMAIL Mode. |
| 199 | Type \\[describe-mode] once editing that file, for a list of RMAIL commands. | 199 | Type \\[describe-mode] once editing that file, for a list of RMAIL commands. |
| 200 | 200 | ||
| 201 | May be called with filename as argument; then performs rmail editing on | 201 | May be called with file name as argument; then performs rmail editing on |
| 202 | that file, but does not copy any new mail into the file." | 202 | that file, but does not copy any new mail into the file. |
| 203 | Interactively, if you supply a prefix argument, then you | ||
| 204 | have a chance to specify a file name with the minibuffer." | ||
| 203 | (interactive (if current-prefix-arg | 205 | (interactive (if current-prefix-arg |
| 204 | (list (read-file-name "Run rmail on RMAIL file: " | 206 | (list (read-file-name "Run rmail on RMAIL file: " |
| 205 | nil nil t)))) | 207 | nil nil t)))) |
| @@ -1856,7 +1858,7 @@ see the documentation of `rmail-resend'." | |||
| 1856 | 1858 | ||
| 1857 | (defun rmail-resend (address &optional from comment mail-alias-file) | 1859 | (defun rmail-resend (address &optional from comment mail-alias-file) |
| 1858 | "Resend current message to ADDRESSES. | 1860 | "Resend current message to ADDRESSES. |
| 1859 | ADDRESSES should be a single address, a a string consisting of several | 1861 | ADDRESSES should be a single address, a string consisting of several |
| 1860 | addresses separated by commas, or a list of addresses. | 1862 | addresses separated by commas, or a list of addresses. |
| 1861 | 1863 | ||
| 1862 | Optional FROM is the address to resend the message from, and | 1864 | Optional FROM is the address to resend the message from, and |
| @@ -1880,14 +1882,20 @@ typically for purposes of moderating a list." | |||
| 1880 | (insert-buffer-substring mailbuf) | 1882 | (insert-buffer-substring mailbuf) |
| 1881 | (goto-char (point-min)) | 1883 | (goto-char (point-min)) |
| 1882 | ;; Delete any Sender field, since that's not specifyable. | 1884 | ;; Delete any Sender field, since that's not specifyable. |
| 1883 | (if (re-search-forward "^Sender:" nil t) | 1885 | ; Only delete Sender fields in the actual header. |
| 1884 | (let (beg) | 1886 | (re-search-forward "^$" nil 'move) |
| 1885 | (beginning-of-line) | 1887 | ; Using "while" here rather than "if" because some buggy mail |
| 1886 | (setq beg (point)) | 1888 | ; software may have inserted multiple Sender fields. |
| 1887 | (forward-line 1) | 1889 | (while (re-search-backward "^Sender:" nil t) |
| 1888 | (while (looking-at "[ \t]") | 1890 | (let (beg) |
| 1889 | (forward-line 1)) | 1891 | (setq beg (point)) |
| 1890 | (delete-region beg (point)))) | 1892 | (forward-line 1) |
| 1893 | (while (looking-at "[ \t]") | ||
| 1894 | (forward-line 1)) | ||
| 1895 | (delete-region beg (point)))) | ||
| 1896 | ; Go back to the beginning of the buffer so the Resent- fields | ||
| 1897 | ; are inserted there. | ||
| 1898 | (goto-char (point-min)) | ||
| 1891 | ;;>> Insert resent-from: | 1899 | ;;>> Insert resent-from: |
| 1892 | (insert "Resent-From: " from "\n") | 1900 | (insert "Resent-From: " from "\n") |
| 1893 | (insert "Resent-Date: " (mail-rfc822-date) "\n") | 1901 | (insert "Resent-Date: " (mail-rfc822-date) "\n") |
| @@ -1929,7 +1937,7 @@ typically for purposes of moderating a list." | |||
| 1929 | (defun rmail-retry-failure () | 1937 | (defun rmail-retry-failure () |
| 1930 | "Edit a mail message which is based on the contents of the current message. | 1938 | "Edit a mail message which is based on the contents of the current message. |
| 1931 | For a message rejected by the mail system, extract the interesting headers and | 1939 | For a message rejected by the mail system, extract the interesting headers and |
| 1932 | the body of the original message; otherwise copy the current message." | 1940 | the body of the original message." |
| 1933 | (interactive) | 1941 | (interactive) |
| 1934 | (require 'mail-utils) | 1942 | (require 'mail-utils) |
| 1935 | (let (to subj irp2 cc orig-message) | 1943 | (let (to subj irp2 cc orig-message) |