(rfc2047-parse-and-decode): Revert last change.
authorDave Love <fx@gnu.org>
Sun, 4 May 2003 17:06:24 +0000 (17:06 +0000)
committerDave Love <fx@gnu.org>
Sun, 4 May 2003 17:06:24 +0000 (17:06 +0000)
lisp/rfc2047.el

index 37a6cb3..ac31a44 100644 (file)
@@ -656,12 +656,14 @@ Return WORD if it is not not an encoded word or if the charset isn't
 decodable."
   (if (not (string-match rfc2047-encoded-word-regexp word))
       word
-    (condition-case nil
-       (rfc2047-decode
-        (match-string 1 word)
-        (upcase (match-string 2 word))
-        (match-string 3 word))
-      (error word))))
+    (or
+     (condition-case nil
+        (rfc2047-decode
+         (match-string 1 word)
+         (upcase (match-string 2 word))
+         (match-string 3 word))
+       (error word))
+     word)))                           ; un-decodable
 
 (defun rfc2047-pad-base64 (string)
   "Pad STRING to quartets."