mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
"Rename Mime10 to MIME10 in codebase
Renamed field 'Mime10' to 'MIME10' across multiple files for canonical representation and consistency with standard MIME naming format in the protocol."
This commit is contained in:
parent
07a3450103
commit
e7c717d0fc
4 changed files with 5 additions and 5 deletions
2
eml.go
2
eml.go
|
@ -21,7 +21,7 @@ func EMLToMsg(fp string) (*Msg, error) {
|
|||
addrHeader: make(map[AddrHeader][]*nm.Address),
|
||||
genHeader: make(map[Header][]string),
|
||||
preformHeader: make(map[Header]string),
|
||||
mimever: Mime10,
|
||||
mimever: MIME10,
|
||||
}
|
||||
|
||||
pm, mbbuf, err := readEML(fp)
|
||||
|
|
|
@ -132,8 +132,8 @@ const (
|
|||
|
||||
// List of MIME versions
|
||||
const (
|
||||
// Mime10 is the MIME Version 1.0
|
||||
Mime10 MIMEVersion = "1.0"
|
||||
// MIME10 is the MIME Version 1.0
|
||||
MIME10 MIMEVersion = "1.0"
|
||||
)
|
||||
|
||||
// List of common content types
|
||||
|
|
2
msg.go
2
msg.go
|
@ -129,7 +129,7 @@ func NewMsg(o ...MsgOption) *Msg {
|
|||
encoding: EncodingQP,
|
||||
genHeader: make(map[Header][]string),
|
||||
preformHeader: make(map[Header]string),
|
||||
mimever: Mime10,
|
||||
mimever: MIME10,
|
||||
}
|
||||
|
||||
// Override defaults with optionally provided MsgOption functions
|
||||
|
|
|
@ -137,7 +137,7 @@ func TestNewMsgWithMIMEVersion(t *testing.T) {
|
|||
value MIMEVersion
|
||||
want MIMEVersion
|
||||
}{
|
||||
{"MIME version is 1.0", Mime10, "1.0"},
|
||||
{"MIME version is 1.0", MIME10, "1.0"},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
Loading…
Reference in a new issue