diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 11:54:43 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 11:54:43 +0100 |
commit | 33b8679f1c6b2055196536b3e3ae808195202377 (patch) | |
tree | 9717704abcc6d986e144e843a3f9652211b80d70 /imap.go | |
parent | ed50cef3cf806c09762e75cf10fb022ce19d3a1b (diff) | |
download | alps-33b8679f1c6b2055196536b3e3ae808195202377.tar.gz alps-33b8679f1c6b2055196536b3e3ae808195202377.zip |
Extract string conversion functions
Diffstat (limited to 'imap.go')
-rw-r--r-- | imap.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)), } |