(gnus-bbdb/update-record): Bug fix.
authoryamaoka <yamaoka>
Fri, 30 Oct 1998 11:03:47 +0000 (11:03 +0000)
committeryamaoka <yamaoka>
Fri, 30 Oct 1998 11:03:47 +0000 (11:03 +0000)
lisp/gnus-bbdb.el

index 4c274ac..1f5f782 100644 (file)
@@ -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