Skip to content

Commit

Permalink
Merge pull request #5 from StevenMaude/show-raw-html
Browse files Browse the repository at this point in the history
Display raw HTML as well as plain text
  • Loading branch information
StevenMaude authored Jan 14, 2017
2 parents 3c5652d + 6c6a0c3 commit 4a422b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ func getMail(latestMsg publicMsg, cookies []*http.Cookie) error {

fmt.Println("\nFrom :", mailMessage.Data.From)
fmt.Println("Subject:", mailMessage.Data.Subject)
fmt.Println()
fmt.Println("Plain text:")
fmt.Println(mailMessage.Data.Parts[0].Body)
fmt.Println("HTML:")
fmt.Println(mailMessage.Data.Parts[1].Body)
return nil
}

Expand Down

0 comments on commit 4a422b3

Please sign in to comment.