1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-02-07 13:31:56 +02:00

Fix typos

This commit is contained in:
Ralph Slooten 2023-07-09 22:33:47 +12:00
parent 7b8faa8a28
commit d39b65deb7
3 changed files with 6 additions and 5 deletions

View File

@ -67,7 +67,7 @@ type releaseMessageRequest struct {
To []string `json:"to"`
}
// Binary data reponse inherits the attachment's content type
// Binary data response inherits the attachment's content type
// swagger:response BinaryResponse
type binaryResponse struct {
// in: body
@ -81,7 +81,7 @@ type textResponse struct {
Body string
}
// Error reponse
// Error response
// swagger:response ErrorResponse
type errorResponse struct {
// The error message
@ -89,10 +89,10 @@ type errorResponse struct {
Body string
}
// Plain text "ok" reponse
// Plain text "ok" response
// swagger:response OKResponse
type okResponse struct {
// Default reponse
// Default response
// in: body
Body string
}

View File

@ -82,6 +82,7 @@ func Send(from string, to []string, msg []byte) error {
return fmt.Errorf("error response to AUTH command: %s", err.Error())
}
}
if err = c.Mail(from); err != nil {
return fmt.Errorf("error response to MAIL command: %s", err.Error())
}

View File

@ -74,7 +74,7 @@ func mailHandler(origin net.Addr, from string, to []string, data []byte) error {
if replaced {
return r
}
replaced = true // only replace first occurence
replaced = true // only replace first occurrence
return re.ReplaceAll(r, []byte("${1}Bcc: "+strings.Join(missingAddresses, ", ")+", "))
})