[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


It appears that some SMTP server send a continuation flag in their initial greeting... for example, AOL:

% telnet 25 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 :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]