Skip to content

Commit

Permalink
Export Attachment function (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
qngn authored Aug 15, 2023
1 parent 5890c74 commit 870ee9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gmime/gmime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func TestIsLegacyAttachment(t *testing.T) {

msg.WalkWithParent(func(p *Part) error {
if p.ContentType() == test.contentType {
assert.Equal(t, test.isAttachment, p.isLegacyAttachment())
assert.Equal(t, test.isAttachment, p.IsLegacyAttachment())
}
return nil
})
Expand Down
2 changes: 1 addition & 1 deletion gmime/part.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (p *Part) IsAttachment() bool {
return false
}

func (p *Part) isLegacyAttachment() bool {
func (p *Part) IsLegacyAttachment() bool {
if p.gmimePart == nil {
return false
}
Expand Down

0 comments on commit 870ee9e

Please sign in to comment.