func AppendMessage(conn *imap.Client, messageData MessageData) error { _, err := imap.Wait(conn.Append("INBOX", imap.NewFlagSet("UnSeen"), &messageData.InternalDate, imap.NewLiteral(messageData.Body))) return err }