aboutsummaryrefslogtreecommitdiff
path: root/imap.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-03 11:54:43 +0100
committerSimon Ser <contact@emersion.fr>2019-12-03 11:54:43 +0100
commit33b8679f1c6b2055196536b3e3ae808195202377 (patch)
tree9717704abcc6d986e144e843a3f9652211b80d70 /imap.go
parented50cef3cf806c09762e75cf10fb022ce19d3a1b (diff)
downloadalps-33b8679f1c6b2055196536b3e3ae808195202377.tar.gz
alps-33b8679f1c6b2055196536b3e3ae808195202377.zip
Extract string conversion functions
Diffstat (limited to 'imap.go')
-rw-r--r--imap.go4
1 files changed, 2 insertions, 2 deletions
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)),
}