qp.el: Don't replace "from " at bol
authorDaiki Ueno <ueno@gnu.org>
Fri, 4 Dec 2015 04:36:31 +0000 (13:36 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 4 Dec 2015 04:36:31 +0000 (13:36 +0900)
* qp.el (quoted-printable-encode-region): Bind `case-fold-search' to
nil when looking for "^From ".  Problem reported by Simon Josefsson.

lisp/ChangeLog
lisp/qp.el

index 137f625..e2eba98 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-04  Daiki Ueno  <ueno@gnu.org>
+
+       * qp.el (quoted-printable-encode-region): Bind `case-fold-search' to
+       nil when looking for "^From ".  Problem reported by Simon Josefsson.
+
 2015-11-25  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nnml.el (nnml-retrieve-groups): Remove.  See:
index 6c48f0f..d7ed30d 100644 (file)
@@ -143,7 +143,8 @@ encode lines starting with \"From\"."
             (and (boundp 'mm-use-ultra-safe-encoding)
                  mm-use-ultra-safe-encoding)))
        (when (or fold mm-use-ultra-safe-encoding)
-         (let ((tab-width 1))          ; HTAB is one character.
+         (let ((tab-width 1)           ; HTAB is one character.
+               (case-fold-search nil))
            (goto-char (point-min))
            (while (not (eobp))
              ;; In ultra-safe mode, encode "From " at the beginning