Add number of recipients to QEntry detailed string

This commit is contained in:
Jan Philipp Timme 2019-01-01 21:27:56 +01:00
parent 6749bdbb96
commit 7b1fa6c833

View File

@ -27,7 +27,7 @@ func (m QEntry) DetailedString() string {
if m.Reason == "" { if m.Reason == "" {
reasonStr = "-/-" 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) { func (queue MailQ) WriteMachineReadable(writer io.Writer) {