![]()
Parent Directory
|
Revision Log
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 |