]> code.delx.au - gnu-emacs/commitdiff
(rmail-retry-failure): Allow blanks in boundary
authorKarl Heuer <kwzh@gnu.org>
Tue, 6 Oct 1998 22:54:20 +0000 (22:54 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 6 Oct 1998 22:54:20 +0000 (22:54 +0000)
string.  Expose mime stuff while searching.

lisp/mail/rmail.el

index dad0cd0aae5ac147f742f96cb6c50d8711490f8f..6e717c586c68127d874282e32dd0d87192983285 100644 (file)
@@ -2989,10 +2989,13 @@ specifying headers which should not be copied into the new message."
   (require 'mail-utils)
   (let ((rmail-this-buffer (current-buffer))
        (msgnum rmail-current-message)
+       (pruned (rmail-msg-is-pruned))
        bounce-start bounce-end bounce-indent resending)
     (save-excursion
       ;; Narrow down to just the quoted original message
-      (rmail-beginning-of-message)
+      (if pruned
+         (rmail-toggle-header 0)
+       (rmail-beginning-of-message))
       (let* ((case-fold-search t)
             (top (point))
             (content-type
@@ -3003,7 +3006,7 @@ specifying headers which should not be copied into the new message."
        ;; Handle MIME multipart bounce messages
        (if (and content-type 
                 (string-match 
-                 ";[\n\t ]*boundary=\"?\\([-0-9a-z'()+_,./:=?]+\\)\"?" 
+                 ";[\n\t ]*boundary=\"?\\([-0-9a-z'()+_,./:=? ]+\\)\"?" 
                  content-type))
            (let ((codestring
                   (concat "\n--"
@@ -3084,7 +3087,9 @@ specifying headers which should not be copied into the new message."
            (goto-char (point-min))
            (mail-position-on-field (if resending "Resent-To" "To") t)
            (set-buffer rmail-this-buffer)
-           (rmail-beginning-of-message))))))
+           (rmail-beginning-of-message))))
+    (if pruned
+       (rmail-toggle-header))))
 \f
 (defun rmail-summary-exists ()
   "Non-nil iff in an RMAIL buffer and an associated summary buffer exists.