Code Search for Developers
 
 
  

IMAPServer.java from AlphaMail at Krugle


Show IMAPServer.java syntax highlighted

import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import java.io.*;

public class IMAPServer extends imapPOA
{
  public String get_cache_id (String user, String password) 
  {
     return "1023";
  }

  public String get_cache_location (String cacheid) 
  {
     return "/tmp";
  }

  public static void main(String args[]) throws Exception
  {
     ORB orb = ORB.init(args, null);
     PrintWriter out = new PrintWriter(new FileWriter("/tmp/imap.ior"));

     POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
     rootpoa.the_POAManager().activate();

     IMAPServer server = new IMAPServer();
     org.omg.CORBA.Object ref = rootpoa.servant_to_reference(server);

     out.println(orb.object_to_string(ref));

     out.flush();
     out.close();

     orb.run();
  }
}




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  IMAPClient.java
  IMAPServer.java
  imap.idl