diff --git a/collects/net/imap-unit.ss b/collects/net/imap-unit.ss index 27a6002..a6c6978 100644 --- a/collects/net/imap-unit.ss +++ b/collects/net/imap-unit.ss @@ -150,6 +150,8 @@ (let ([l (read-bytes-line r eol)]) (log "raw-reply: ~s~n" l) (cond + [(eof-object? l) + (error 'imap-send "unexpected end-of-file from server")] [(and id (starts-with? l id)) (let ([reply (imap-read (skip l id) r)]) (log "response: ~a~n" reply)