[Python-bugs-list] [ python-Bugs-424776 ] SMTP Example does not work

noreply@sourceforge.net noreply@sourceforge.net
Fri, 18 May 2001 14:21:51 -0700


Bugs item #424776, was updated on 2001-05-17 00:54
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424776&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: SMTP Example does not work

Initial Comment:
Maybe no one tried it for a long time ... the SMTP
example in the 2.1 version of the smtplib part of
'Python Library Reference' uses 'rawinput()' to read
from input. When the 'user' termninates his message
with ^D, rawinput raises EOFError, which is not catched
in this code, which probably should be changed to

while 1:
  try:
    line = raw_input()
  except EOFError:
    break
  msg = msg + line

Regards,
Matthias

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-05-18 14:21

Message:
Logged In: YES 
user_id=3066

Well, I've fixed this in my sources, but there's stale lock in the CVS repository preventing me from checking this in.  I've filed a support request with SF and will close this bug report when I can make the required checkin.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424776&group_id=5470