]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-resend): Delete any Sender field.
authorRichard M. Stallman <rms@gnu.org>
Thu, 5 Aug 1993 06:54:58 +0000 (06:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 5 Aug 1993 06:54:58 +0000 (06:54 +0000)
lisp/mail/rmail.el

index f600251de83771d592d5cec6da754c097e14e936..0b9d26573afc861c8f2c62367ee799c63cb9e0c5 100644 (file)
@@ -1856,6 +1856,15 @@ typically for purposes of moderating a list."
          (set-buffer tembuf)
          (insert-buffer-substring mailbuf)
          (goto-char (point-min))
+         ;; Delete any Sender field, since that's not specifyable.
+         (if (re-search-forward "^Sender:" nil t)
+             (let (beg)
+               (beginning-of-line)
+               (setq beg (point))
+               (forward-line 1)
+               (while (looking-at "[ \t]")
+                 (forward-line 1))
+               (delete-region beg (point))))
          ;;>> Insert resent-from:
          (insert "Resent-From: " from "\n")
          (insert "Resent-Date: " (mail-rfc822-date) "\n")