func Pcmd(c *Cmd, dot *imap.MsgPart) *imap.MsgPart { if dot == nil { return nil } if dot == &dot.Msg.Root { fmt.Fprintf(bout, "From %s %s\n", unixfrom(dot.Msg.Hdr), unixtime(dot.Msg)) } bout.Write(dot.Raw()) return dot }