Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 627 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 627 Bytes

Tigger, SMTP to core.async Channel Receiver

Tigger provides an SMTP server that routes messages to a core.async channel as Clojure data structures.

Usage

To start a server you use the listen function, which will return a channel that you can read from. This is an example which prints all messages that are received.

(ns my.project
  (:require [tigger.core :refer [listen]]
            [clojure.core.async :refer [<!!]]))

(defn -main []
  (let [ch (listen 25)]
    (while true
      (println (pr-str (<!! ch))))))