Update readme

This commit is contained in:
Ian Kent 2014-04-21 12:24:21 +01:00
parent ef941fb69c
commit b2e0ae7f46
3 changed files with 12 additions and 5 deletions

View file

@ -20,6 +20,17 @@ Go was chosen for portability - MailHog runs without installation on multiple pl
By default, the SMTP server will start on port 1025, and the HTTP
server will start on port 8025.
### Features
* ESMTP server implementing RFC5321
* Web interface to view messages
* API interface to list, retrieve and delete messages
* MongoDB storage for message persistence
* Lightweight and portable
* No installation required
![Screenshot of MailHog web interface](/images/MailHog.png "MailHog web interface")
### Configuration
You can configure Go-MailHog using command line options:

BIN
images/MailHog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -63,11 +63,7 @@ func ParseSMTPMessage(c *mailhog.Config, m *SMTPMessage) *Message {
}
func (content *Content) IsMIME() bool {
if strings.HasPrefix(content.Headers["Content-Type"][0], "multipart/") {
return true
} else {
return false
}
return strings.HasPrefix(content.Headers["Content-Type"][0], "multipart/")
}
func (content *Content) ParseMIMEBody() *MIMEBody {