]> git.eshelyaron.com Git - emacs.git/commitdiff
(sendmail-send-it): Don't parse Resent-*
authorGerd Moellmann <gerd@gnu.org>
Wed, 21 Mar 2001 10:29:26 +0000 (10:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 21 Mar 2001 10:29:26 +0000 (10:29 +0000)
headers.  Always invoke sendmail with option -t.

lisp/ChangeLog
lisp/mail/sendmail.el

index b3aaae58374b99fdfcb167241d4f652a7e0f58e0..e0fa35fe33980a5e223d2d345009237c79faf5cb 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-21  Gerd Moellmann  <gerd@gnu.org>
+
+       * mail/sendmail.el (sendmail-send-it): Don't parse Resent-*
+       headers.  Always invoke sendmail with option -t.
+
 2001-03-21  Paul Eggert  <eggert@twinsun.com>
 
        * international/mule-cmds.el (set-locale-environment): Set
index 8b011159d0bf3e99b4acfd7983e285c01d704838..39f641ea32db0bd4cbeddd45db0e5500e02eef8f 100644 (file)
@@ -795,7 +795,7 @@ external program defined by `sendmail-program'."
        (coding (and (local-variable-p 'buffer-file-coding-system)
                     buffer-file-coding-system))
        selected-coding
-       resend-to-addresses
+;;;    resend-to-addresses
        delimline
        fcc-was-found
        (mailbuf (current-buffer)))
@@ -823,23 +823,23 @@ external program defined by `sendmail-program'."
            (replace-match "\n"))
          (goto-char (point-min))
          (let ((case-fold-search t))
-           (goto-char (point-min))
-           (while (re-search-forward "^Resent-\\(to\\|cc\\|bcc\\):" delimline t)
-             (setq resend-to-addresses
-                   (save-restriction
-                     (narrow-to-region (point)
-                                       (save-excursion
-                                         (forward-line 1)
-                                         (while (looking-at "^[ \t]")
-                                           (forward-line 1))
-                                         (point)))
-                     (append (mail-parse-comma-list)
-                             resend-to-addresses)))
-             ;; Delete Resent-BCC ourselves
-             (if (save-excursion (beginning-of-line)
-                                 (looking-at "resent-bcc"))
-                 (delete-region (save-excursion (beginning-of-line) (point))
-                                (save-excursion (end-of-line) (1+ (point))))))
+;;;        (goto-char (point-min))
+;;;        (while (re-search-forward "^Resent-\\(to\\|cc\\|bcc\\):" delimline t)
+;;;          (setq resend-to-addresses
+;;;                (save-restriction
+;;;                  (narrow-to-region (point)
+;;;                                    (save-excursion
+;;;                                      (forward-line 1)
+;;;                                      (while (looking-at "^[ \t]")
+;;;                                        (forward-line 1))
+;;;                                      (point)))
+;;;                  (append (mail-parse-comma-list)
+;;;                          resend-to-addresses)))
+;;;          ;; Delete Resent-BCC ourselves
+;;;          (if (save-excursion (beginning-of-line)
+;;;                              (looking-at "resent-bcc"))
+;;;              (delete-region (save-excursion (beginning-of-line) (point))
+;;;                             (save-excursion (end-of-line) (1+ (point))))))
 ;;; Apparently this causes a duplicate Sender.
 ;;;        ;; If the From is different than current user, insert Sender.
 ;;;        (goto-char (point-min))
@@ -980,13 +980,16 @@ external program defined by `sendmail-program'."
                                ;; These mean "report errors by mail"
                                ;; and "deliver in background".
                                '("-oem" "-odb"))
-                             ;; Get the addresses from the message
-                             ;; unless this is a resend.
-                             ;; We must not do that for a resend
-                             ;; because we would find the original addresses.
-                             ;; For a resend, include the specific addresses.
-                             (or resend-to-addresses
-                                 '("-t"))))
+;;;                          ;; Get the addresses from the message
+;;;                          ;; unless this is a resend.
+;;;                          ;; We must not do that for a resend
+;;;                          ;; because we would find the original addresses.
+;;;                          ;; For a resend, include the specific addresses.
+;;;                          (or resend-to-addresses
+                                 '("-t")
+;;;                              )
+                             )
+                     )
                     (exit-value (apply 'call-process-region args)))
                (or (null exit-value) (zerop exit-value)
                    (error "Sending...failed with exit value %d" exit-value)))