From 0f8e82764f8c0c3ea6537299030fccfa051d761e Mon Sep 17 00:00:00 2001 From: keiichi Date: Fri, 30 Oct 1998 10:51:17 +0000 Subject: [PATCH] (gnus-bbdb/update-record): Check existance of `To' field before decoding. --- lisp/gnus-bbdb.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.10.4