func inspect_header(m gmime.Message) { fmt.Printf("=================== HEADER =======================\n") fmt.Printf("%v\n", m.Headers()) fmt.Printf("=================== END HEADER ===================\n") }
func inspect_message(m gmime.Message) { inspect_header(m) inspect_part(m.MimePart(), 0) }