mirror of
https://github.com/axllent/mailpit.git
synced 2025-09-16 09:26:37 +02:00
Fix typos
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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())
|
||||
}
|
||||
|
@@ -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, ", ")+", "))
|
||||
})
|
||||
|
Reference in New Issue
Block a user