From 33b8679f1c6b2055196536b3e3ae808195202377 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Dec 2019 11:54:43 +0100 Subject: Extract string conversion functions --- imap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap.go') diff --git a/imap.go b/imap.go index 18220b5..78e2f88 100644 --- a/imap.go +++ b/imap.go @@ -138,7 +138,7 @@ func (msg *imapMessage) TextPartName() string { } type IMAPPartNode struct { - Path []int + Path []int MIMEType string Children []IMAPPartNode } @@ -158,7 +158,7 @@ func imapPartTree(bs *imap.BodyStructure, path []int) *IMAPPartNode { } node := &IMAPPartNode{ - Path: path, + Path: path, MIMEType: strings.ToLower(bs.MIMEType + "/" + bs.MIMESubType), Children: make([]IMAPPartNode, len(bs.Parts)), } -- cgit v1.2.3-59-g8ed1b