G
Guest
Hi all,
I have written this code to see how the mail application response to
my pop3 commands, but it doesn't work at all.
How I want it to work is to print out the pop3 request command from
the mail application eg outlook express etc... but it doesn't seem to
print out any command at all and just does nothing... can anyone help
please.
import java.io.*;
import java.net.*;
import javax.mail.*;
import java.util.*;
import javax.mail.event.*;
import javax.mail.internet.*;
public class SimpleProxy
{
public static void main(String args[])
{
try{
ServerSocket server = new ServerSocket(8189);
Socket incoming = server.accept();
System.out.println("Waiting!");
BufferedReader reader = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true);
String line = reader.readLine();
System.out.println(line);
}catch(Exception ex)
{
ex.printStackTrace();
}
}
}
I have written this code to see how the mail application response to
my pop3 commands, but it doesn't work at all.
How I want it to work is to print out the pop3 request command from
the mail application eg outlook express etc... but it doesn't seem to
print out any command at all and just does nothing... can anyone help
please.
import java.io.*;
import java.net.*;
import javax.mail.*;
import java.util.*;
import javax.mail.event.*;
import javax.mail.internet.*;
public class SimpleProxy
{
public static void main(String args[])
{
try{
ServerSocket server = new ServerSocket(8189);
Socket incoming = server.accept();
System.out.println("Waiting!");
BufferedReader reader = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true);
String line = reader.readLine();
System.out.println(line);
}catch(Exception ex)
{
ex.printStackTrace();
}
}
}