packages feed

postie-0.2.0.0: postie.cabal

name: postie
version: 0.2.0.0
cabal-version: >=1.10
build-type: Simple
license: BSD3
license-file: LICENSE
maintainer: alex.biehl@gmail.com
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.
             - At the time of writing parameters on smtp commands can not be parsed.
             - Handler functions need to return more detailed information to cancel a transaction.
             `postie` supportes hooks on key commands in an smtp session like
             - on connection open and close
             - on `MAIL FROM` command e.g. to intercept transaction if sender is blacklisted
             - on `RCPT TO` command e.g. to check if recipient is existent on your server
             - and many more
             To run `postie` you only need to supply a function which takes a `Mail` and
             return `Accepted` or `Rejected`. `mailBody` is a `pipes` `Producer` which
             streams the encoded body directly to your application code. The body is not
             parsed by `postie` since it depends on what the application wants to do with
             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
    location: https://bitbucket.org/alexbiehl/postie

flag examples
    Description:  Build examples
    Default: False
    Manual: True

library
    build-depends: base >=4 && <=5, network >=2.4.1.2,
                   bytestring >=0.10.0.2, tls >=1.2.3, 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
    exposed-modules: Web.Postie Web.Postie.Types Web.Postie.Settings
    exposed: True
    buildable: True
    default-language: Haskell2010
    default-extensions: Rank2Types OverloadedStrings DeriveDataTypeable
    hs-source-dirs: src
    other-modules: Web.Postie.Connection Web.Postie.Session
                   Web.Postie.Protocol Web.Postie.Pipes Web.Postie.Address
    ghc-options: -O2 -Wall

executable postie-example-simple
    build-depends: base -any, bytestring -any, tls -any,
                   data-default-class -any, pipes -any, pipes-bytestring -any,
                   postie -any

    if flag(examples)
        buildable: True
    else
        buildable: False
    main-is: Simple.hs
    buildable: True
    default-language: Haskell2010
    hs-source-dirs: examples