[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Classpath-inetlib] SMTP greeting & continuation?
From: |
petite_abeille |
Subject: |
[Classpath-inetlib] SMTP greeting & continuation? |
Date: |
Mon, 5 Jul 2004 14:11:53 +0200 |
Hello,
It appears that some SMTP server send a continuation flag in their
initial greeting... for example, AOL:
% telnet mailin-02.mx.netscape.net 25
220-rly-na01.mx.aol.com ESMTP mail_relay_in-na1.2; Mon, 05 Jul 2004
07:45:09 -0400
220-America Online (AOL) and its affiliated companies do not
220- authorize the use of its proprietary computers and computer
220- networks to accept, transmit, or distribute unsolicited bulk
220- e-mail sent from the internet. Effective immediately: AOL
220- may no longer accept connections from IP addresses which
220 have no reverse-DNS (PTR record) assigned.
Unfortunately, this confuses SMTPConnection quiet a bit :/
What would be a reasonable way to deal with this? Should the
SMTPConnection constructor loop through getResponse() while the
continuation flag is true?
More generally, should the getResponse() always read the entire
response when it encounters a continuation flag?
This is what com.sun.mail.smtp.SMTPTransport seems to do in its
readServerResponse() method.
TIA :)
Cheers,
PA.
- [Classpath-inetlib] SMTP greeting & continuation?,
petite_abeille <=