+2005-07-25  Daiki Ueno  <ueno@unixuser.org>
+
+       * smtp.el (smtp-read-response): Signal an error if connection is
+       closed while reading response.  From Hiroya Murata
+       <lapis-lazuli@pop06.odn.ne.jp> [cf. <emacs-mime-ja:01978>]
+
 2004-11-20  Daiki Ueno  <ueno@unixuser.org>
 
        * ntlm.el (ntlm-ascii2unicode): Don't apply zerop to a character.
 
     (while response-continue
       (goto-char smtp-read-point)
       (while (not (search-forward smtp-end-of-line nil t))
+       (unless (smtp-connection-opened connection)
+         (signal 'smtp-error "Connection closed"))
        (accept-process-output (smtp-connection-process-internal connection))
        (goto-char smtp-read-point))
       (if decoder