added tons of stuff, including js support
[org.ibex.mail.git] / src / org / ibex / mail / protocol / IMAP.java
1 package org.ibex.mail.protocol;
2 import java.net.*;
3 import java.io.*;
4
5 class IMAPException extends IOException {
6 }
7
8 public class IMAP extends MessageProtocol {
9
10     public static void main(String[] args) throws Exception {
11         ServerSocket ss = new ServerSocket(143);
12         while(true) {
13             System.out.println("listening");
14             final Socket s = ss.accept();
15             System.out.println("connected");
16             new Thread() {
17                 public void run() {
18                     try {
19                         service(s);
20                     } catch (Exception e) {
21                         e.printStackTrace();
22                     }
23                 }
24             }.start();
25         }
26     }
27
28     public static void service(Socket s) throws IOException {
29     }
30 }