diff --git a/mailq/string.go b/mailq/string.go index d3963bd..7493535 100644 --- a/mailq/string.go +++ b/mailq/string.go @@ -27,7 +27,7 @@ func (m QEntry) DetailedString() string { if m.Reason == "" { reasonStr = "-/-" } - return fmt.Sprintf("Id: %s\nDate: %s\nStatus: %s\nReason: %s\nSize: %d\nSender: %s\nRecipients: %s", m.Id, m.Date.Format(SortableDateFormat), m.Status, reasonStr, m.Size, m.Sender, strings.Join(m.Recipients, ", ")) + return fmt.Sprintf("Id: %s\nDate: %s\nStatus: %s\nReason: %s\nSize: %d\nSender: %s\nRecipients: {%d} %s", m.Id, m.Date.Format(SortableDateFormat), m.Status, reasonStr, m.Size, m.Sender, len(m.Recipients), strings.Join(m.Recipients, ", ")) } func (queue MailQ) WriteMachineReadable(writer io.Writer) {