From: keiichi Date: Fri, 30 Oct 1998 10:51:17 +0000 (+0000) Subject: (gnus-bbdb/update-record): Check existance of `To' field before decoding. X-Git-Tag: keiichi-199811302358~47 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0f8e82764f8c0c3ea6537299030fccfa051d761e;p=elisp%2Fgnus.git- (gnus-bbdb/update-record): Check existance of `To' field before decoding. --- diff --git a/lisp/gnus-bbdb.el b/lisp/gnus-bbdb.el index 4c274ac..9200987 100644 --- a/lisp/gnus-bbdb.el +++ b/lisp/gnus-bbdb.el @@ -46,7 +46,8 @@ the user confirms the creation." (error "message unexists")) (- (point) 2))) (let ((to (mail-fetch-field "to"))) - (setq from (mime-decode-field-body to 'To 'unfolding))))) + (when to + (setq from (mime-decode-field-body to 'To 'unfolding)))))) (when from (bbdb-annotate-message-sender from t (or (bbdb-invoke-hook-for-value