Now that was a nasty bug. The Javamail API changed. Hmm... now we have two working news stores and maybe even two working POP3 stores.

This commit is contained in:
edwin%woudt.nl 1999-02-25 16:14:45 +00:00
Родитель be6b3f57c1
Коммит 5e89afec24
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -128,6 +128,7 @@ public class NewsStore extends Store {
protected boolean protocolConnect(String host,
int port,
String user,
String password)
throws MessagingException {
@ -152,8 +153,6 @@ public class NewsStore extends Store {
nntp = new NNTPConnection();
int port = -1; // #### override this from the url or something.
try {
boolean status = nntp.connect(host, port, user, password);
if (!status) return false;

Просмотреть файл

@ -103,6 +103,7 @@ public class PopStore extends Store {
}
synchronized public boolean protocolConnect(String host,
int port,
String user,
String password)
throws MessagingException
@ -110,6 +111,7 @@ public class PopStore extends Store {
if (fSocket != null) return true; // Already connected.
try {
if (port != -1) fPort = port;
fSocket = new Socket(host, fPort);
fInput = fSocket.getInputStream();
fOutput = new DataOutputStream(fSocket.getOutputStream());