Match EOL of boundary.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 5 Jul 2000 18:39:45 +0000 (18:39 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 5 Jul 2000 18:39:45 +0000 (18:39 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index 8aace9b..99af294 100644 (file)
@@ -1,3 +1,7 @@
+2000-07-06 14:17:48  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-decode.el (mm-dissect-multipart): Match the EOL of boundary.
+
 2000-07-05 21:19:22  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * nnheader.el (nnheader-insert-nov): Remove EOLs of all fields.
index 694b2e6..c325f86 100644 (file)
@@ -295,7 +295,8 @@ to:
                (if (re-search-backward close-delimiter nil t)
                    (match-beginning 0)
                  (point-max)))))
-    (while (search-forward boundary end t)
+    (setq boundary (concat (regexp-quote boundary) "[ \t]*$"))
+    (while (re-search-forward boundary end t)
       (goto-char (match-beginning 0))
       (when start
        (save-excursion