Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use package mime to parse boundary #2

Merged
merged 3 commits into from
Feb 5, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add back original log printing line
nvcnvn committed Feb 5, 2015
commit 70e57e825d83dadcfcc5f56a1c063b43fb2c9153
3 changes: 3 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
@@ -119,6 +119,9 @@ func (content *Content) ParseMIMEBody() *MIMEBody {
var p []string
if len(boundary) > 0 {
p = strings.Split(content.Body, "--"+boundary)
log.Printf("Got boundary: %s", boundary)
} else {
log.Printf("Boundary not found: %s", hdr[0])
}

for _, s := range p {