Open
Description
Right now clients always wait for the server reply for a command before sending the next one. This causes some unnecessary latency due to roundtrips.
Possible extended API to allow clients to send command batches:
type ClientBatch struct {}
func (*Client) Batch() *ClientBatch
func (*ClientBatch) Mail(from string) *ClientBatch
func (*ClientBatch) Rcpt(to string) *ClientBatch
func (*ClientBatch) Data() io.WriteCloser
func (*ClientBatch) Wait() error