mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 16:24:04 +00:00
Fix #1
This commit is contained in:
parent
945ed921ea
commit
82658779e5
9 changed files with 24 additions and 24 deletions
|
@ -3,7 +3,7 @@ Go-MailHog
|
||||||
|
|
||||||
Inspired by [MailCatcher](http://mailcatcher.me/), easier to install.
|
Inspired by [MailCatcher](http://mailcatcher.me/), easier to install.
|
||||||
|
|
||||||
Go-MailHog is a rewritten version of [MailHog](https://github.com/ian-kent/MailHog), which was born out of [M3MTA](https://github.com/ian-kent/M3MTA).
|
Go-MailHog is a rewritten version of [MailHog](https://github.com/ian-kent/Go-MailHog), which was born out of [M3MTA](https://github.com/ian-kent/M3MTA).
|
||||||
|
|
||||||
Go was chosen for portability - MailHog runs without installation on multiple platforms.
|
Go was chosen for portability - MailHog runs without installation on multiple platforms.
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ You can configure Go-MailHog using command line options:
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
Clone this repository to ```$GOPATH/src/github.com/ian-kent/MailHog``` and type ```go install```.
|
Clone this repository to ```$GOPATH/src/github.com/ian-kent/Go-MailHog``` and type ```go install```.
|
||||||
|
|
||||||
You'll need go-bindata to embed web assets:
|
You'll need go-bindata to embed web assets:
|
||||||
```
|
```
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"bufio"
|
"bufio"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/ian-kent/MailHog/mailhog/data"
|
"github.com/ian-kent/Go-MailHog/mailhog/data"
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
||||||
"github.com/ian-kent/MailHog/mailhog/http/router"
|
"github.com/ian-kent/Go-MailHog/mailhog/http/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
type APIv1 struct {
|
type APIv1 struct {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"log"
|
"log"
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/http/api"
|
"github.com/ian-kent/Go-MailHog/mailhog/http/api"
|
||||||
"github.com/ian-kent/MailHog/mailhog/http/router"
|
"github.com/ian-kent/Go-MailHog/mailhog/http/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
var exitChannel chan int
|
var exitChannel chan int
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"regexp"
|
"regexp"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
||||||
"github.com/ian-kent/MailHog/mailhog/data"
|
"github.com/ian-kent/Go-MailHog/mailhog/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package storage
|
package storage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/data"
|
"github.com/ian-kent/Go-MailHog/mailhog/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Memory struct {
|
type Memory struct {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
"github.com/ian-kent/MailHog/mailhog/data"
|
"github.com/ian-kent/Go-MailHog/mailhog/data"
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MongoDB struct {
|
type MongoDB struct {
|
||||||
|
|
8
main.go
8
main.go
|
@ -2,10 +2,10 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/http"
|
"github.com/ian-kent/Go-MailHog/mailhog/http"
|
||||||
"github.com/ian-kent/MailHog/mailhog/smtp"
|
"github.com/ian-kent/Go-MailHog/mailhog/smtp"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"net"
|
"net"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ian-kent/MailHog/mailhog/config"
|
"github.com/ian-kent/Go-MailHog/mailhog/config"
|
||||||
"github.com/ian-kent/MailHog/mailhog/storage"
|
"github.com/ian-kent/Go-MailHog/mailhog/storage"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"net"
|
"net"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
Loading…
Reference in a new issue