]> git.notmuchmail.org Git - notmuch/commit
Make `notmuch-show-clean-address' parsing-error-proof.
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Thu, 12 May 2011 13:56:25 +0000 (17:56 +0400)
committerCarl Worth <cworth@cworth.org>
Fri, 3 Jun 2011 21:08:26 +0000 (14:08 -0700)
commitd1cbd833a7b3ebfaeb0252b9c7fc98762a5f3961
tree1320c439d04277497b5bf4ea8289e6c26c9e1074
parent79a587d9636b8d0064f50bef8651ec6ccd1a94fb
Make `notmuch-show-clean-address' parsing-error-proof.

Mail-header-parse-address may fail for an invalid address.
Before the change, this would result in empty notmuch-show buffer
with an error message like: Scan error: "Unbalanced parentheses".
The patch wraps the function in condition-case and returns
unchanged address in case of error.
emacs/notmuch-show.el