a504848cb61d2b8abea6aa4788db91c50075848c
[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 interface IMAP {
9 }
10
11
12 public class IMAP extends MessageProtocol {
13
14     public static void main(String[] args) throws Exception {
15         ServerSocket ss = new ServerSocket(143);
16         while(true) {
17             System.out.println("listening");
18             final Socket s = ss.accept();
19             System.out.println("connected");
20             new Thread() {
21                 public void run() {
22                     try {
23                         service(s);
24                     } catch (Exception e) {
25                         e.printStackTrace();
26                     }
27                 }
28             }.start();
29         }
30     }
31
32     public static void service(Socket s) throws IOException {
33     }
34 }