postie 0.3.0.0 → 0.3.1.0
raw patch · 2 files changed
+16/−9 lines, 2 filesdep ~tls
Dependency ranges changed: tls
Files
- examples/Simple.hs +12/−4
- postie.cabal +4/−5
examples/Simple.hs view
@@ -7,14 +7,22 @@ settings :: Settings settings = defaultSettings {- settingsTLS = Just $ (tlsSettings "server.crt" "server.key") {- security = DemandStartTLS- }, settingsOnOpen = \sid -> do putStrLn $ show sid ++ " session opened" , settingsOnClose = \sid -> do putStrLn $ show sid ++ " session closed"+ ,+ settingsOnMailFrom = \sid addr -> do+ putStrLn $ show sid ++ " mail from " ++ show addr+ return Accepted+ ,+ settingsOnRecipient = \sid addr -> do+ putStrLn $ show sid ++ " rcpt to " ++ show addr+ return Accepted+ ,+ settingsOnStartTLS = \sid -> do+ putStrLn $ show sid ++ " starttls" } main :: IO ()@@ -22,6 +30,6 @@ runSettings settings app where app (Mail sid _ _ body) = do- putStrLn $ show sid ++ " receiving mail"+ putStrLn $ show sid ++ " data" runEffect $ body >-> stdout return Accepted
postie.cabal view
@@ -1,12 +1,12 @@ name: postie-version: 0.3.0.0+version: 0.3.1.0 cabal-version: >=1.10 build-type: Simple license: BSD3 license-file: LICENSE maintainer: alex.biehl@gmail.com-synopsis: A library to receive emails from within Haskell programs.-category:+synopsis: SMTP server library to receive emails from within Haskell programs.+category: SMTP description: `postie` is a little smtp server library for receiving emails. It is currently in a very early stage and not yet fully standard compatible although the standard protocol is already supported.@@ -32,7 +32,6 @@ the mail data. Eventually I will create a seperate package for parsing mime messages with `pipes-parse` when postie becomes more stable and standard compliant. author: Alex Biehl-data-dir: "" source-repository head type: git@@ -45,7 +44,7 @@ library build-depends: base >=4 && <=5, network >=2.4.1.2,- bytestring >=0.10.0.2, tls >=1.2.3, pipes >=4.1.0,+ bytestring >=0.10.0.2, tls >=1.2.6, pipes >=4.1.0, pipes-parse >=3.0.1, attoparsec >=0.10.4.0, transformers >=0.3.0.0, mtl >=2.1.2, cprng-aes >=0.5.2, data-default-class >=0.0.1, uuid >= 1.3.3 exposed-modules: Web.Postie Web.Postie.Types Web.Postie.Settings