diff --git a/README.md b/README.md index ef5e293..1724885 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ A Go library to authenticate e-mails: * Create and verify [DKIM signatures][DKIM] * Create and parse [Authentication-Results header fields][Authentication-Results] +* Fetch [DMARC] records ## DKIM [![GoDoc](https://godoc.org/github.com/emersion/go-msgauth/dkim?status.svg)](https://godoc.org/github.com/emersion/go-msgauth/dkim) @@ -77,9 +78,14 @@ if err != nil { log.Println(identifier, results) ``` +## DMARC [![GoDoc](https://godoc.org/github.com/emersion/go-msgauth/dmarc?status.svg)](https://godoc.org/github.com/emersion/go-msgauth/dmarc) + +See the GoDoc page. + ## License MIT [DKIM]: https://tools.ietf.org/html/rfc6376 [Authentication-Results]: https://tools.ietf.org/html/rfc7601 +[DMARC]: http://tools.ietf.org/html/rfc7489 diff --git a/dmarc/cmd/dmarc-lookup/main.go b/cmd/dmarc-lookup/main.go similarity index 84% rename from dmarc/cmd/dmarc-lookup/main.go rename to cmd/dmarc-lookup/main.go index f040bbe..85fcb75 100644 --- a/dmarc/cmd/dmarc-lookup/main.go +++ b/cmd/dmarc-lookup/main.go @@ -1,12 +1,10 @@ -//+build ignore - package main import ( "flag" "log" - "github.com/emersion/go-dmarc" + "github.com/emersion/go-msgauth/dmarc" ) func main() { diff --git a/dmarc/.gitignore b/dmarc/.gitignore deleted file mode 100644 index f1c181e..0000000 --- a/dmarc/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib - -# Test binary, build with `go test -c` -*.test - -# Output of the go coverage tool, specifically when used with LiteIDE -*.out diff --git a/dmarc/LICENSE b/dmarc/LICENSE deleted file mode 100644 index 37d2e32..0000000 --- a/dmarc/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 emersion - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/dmarc/README.md b/dmarc/README.md deleted file mode 100644 index 906672f..0000000 --- a/dmarc/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# go-dmarc - -[![GoDoc](https://godoc.org/github.com/emersion/go-dmarc?status.svg)](https://godoc.org/github.com/emersion/go-dmarc) - -A DMARC library for Go. - -## License - -MIT diff --git a/dmarc/go.mod b/dmarc/go.mod deleted file mode 100644 index 6cbd359..0000000 --- a/dmarc/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/emersion/go-dmarc - -go 1.12