Skip to content

A Clojure library for parsing email addresses according to RFC 5322

License

Notifications You must be signed in to change notification settings

clojusc/rfc5322

 
 

Repository files navigation

rfc5322

Build Status Dependencies Status Clojars Project Tag JDK version Clojure version

A Parser for the Internet Message Format (RFC 5322)

Usage

There's a nice little prompt when you start up a REPL:

$ lein repl
To demo the code, try the following:

	(demo-lite)
	(source demo-lite)
	(source parsed-lite)
	parsed-lite

	(demo-full)
	(source demo-full)
	(source parsed-full)
	parsed-full

	(test-message)

...

[rfc5322.repl] λ=>

Try those out, then look at the source code in the following locations:

  • dev-resources/src/rfc5322/repl.clj
  • src/rfc5322/core.clj
  • src/rfc5322/parser.clj
  • src/rfc5322/xform.clj

The test message used in repl.clj is here:

  • test/rfc5322/core/test.clj

License

Copyright © 2013, Zachary Kuhn

Copyright © 2017-2019, Clojure-Aided Enrichment Center

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.