Add number of recipients to QEntry detailed string
This commit is contained in:
parent
6749bdbb96
commit
7b1fa6c833
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue