mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
Update readme
This commit is contained in:
parent
ef941fb69c
commit
b2e0ae7f46
3 changed files with 12 additions and 5 deletions
11
README.md
11
README.md
|
@ -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
|
By default, the SMTP server will start on port 1025, and the HTTP
|
||||||
server will start on port 8025.
|
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
|
### Configuration
|
||||||
|
|
||||||
You can configure Go-MailHog using command line options:
|
You can configure Go-MailHog using command line options:
|
||||||
|
|
BIN
images/MailHog.png
Normal file
BIN
images/MailHog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
|
@ -63,11 +63,7 @@ func ParseSMTPMessage(c *mailhog.Config, m *SMTPMessage) *Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (content *Content) IsMIME() bool {
|
func (content *Content) IsMIME() bool {
|
||||||
if strings.HasPrefix(content.Headers["Content-Type"][0], "multipart/") {
|
return strings.HasPrefix(content.Headers["Content-Type"][0], "multipart/")
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (content *Content) ParseMIMEBody() *MIMEBody {
|
func (content *Content) ParseMIMEBody() *MIMEBody {
|
||||||
|
|
Loading…
Reference in a new issue