acceptor = new NioSocketAcceptor();
// cfg.getFilterChain().addLast("mimemessage1", new MimeMessageIOFilter() );
acceptor.getFilterChain().addLast("logger", new LoggingFilter());
acceptor.getFilterChain().addLast("codec", new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName("US-ASCII"))));
acceptor.getFilterChain().addLast("stream", new StreamWriteFilter() );
acceptor.setHandler( new PopIOHandlerAdapter(this) );
try {
//cfg.getFilterChain().addLast("codec", new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName("UTF-8"))));
acceptor.bind(new InetSocketAddress(popPort));
} catch (IOException ex) {