PDOS

[uia] / trunk / uia / eyo-imap / imap.hs  

View of /trunk/uia/eyo-imap/imap.hs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3518 - (download) (as text) (annotate)
Thu Nov 6 22:50:13 2008 UTC (12 months, 2 weeks ago) by ctl
File size: 438 byte(s)
 r5036@brainchild:  ctl | 2008-11-06 17:49:37 -0500
 rewrite classes as records.
 
import Eyo.IMAP.Server( run_server, handle_connection,
                        PortID( PortNumber, Service ) )
import qualified Eyo.IMAP.SASL as SASL
import System.IO( stdin, stdout )
import Control.Monad.Trans( liftIO )

portid = PortNumber 12345
-- portid = Service "imap"

auth = SASL.plain $ \authz auth pw -> do
  print (authz,auth,pw)
  return $ Just auth

--main = handle_connection auth stdin stdout
main = run_server auth portid

Maintained by PDOS
ViewVC Help
Powered by ViewVC 1.0.3