Skip to content

Commit

Permalink
"Rename Mime10 to MIME10 in codebase
Browse files Browse the repository at this point in the history
Renamed field 'Mime10' to 'MIME10' across multiple files for canonical representation and consistency with standard MIME naming format in the protocol."
  • Loading branch information
wneessen committed Oct 13, 2023
1 parent 07a3450 commit e7c717d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e7c717d

Please sign in to comment.