Skip to content

Commit

Permalink
Do not fail when MIME-Version is empty on decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tats committed Aug 12, 2015
1 parent 52c3614 commit 4908c5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mew-decode.el
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ Return the existence MIME-Version: and the value of Subject:."
;; MIME-Version:
(setq mimep (string-match
mew-mv:-num
(mew-addrstr-parse-value
(mew-buffer-substring med (point)))))))
(or (mew-addrstr-parse-value
(mew-buffer-substring med (point)))
"")))))
(when prop
(setq key-face (mew-key-face key nspec))
(setq val-face (mew-val-face key nspec))
Expand Down

0 comments on commit 4908c5c

Please sign in to comment.