{{ if .Title }}{{ .Title }}{{ else if .ThreadRoot }}thread root attachments:{{ else }}attachments:{{ end }}
{{ range .Attachments }}- {{ .Filename }}{{ if .ID }} (id:{{ .ID }}{{ if .ContentType }}, mime:{{ .ContentType }}{{ end }}{{ if gt .SizeBytes 0 }}, size:{{ .SizeBytes }} bytes{{ end }}){{ else if .ContentType }} (mime:{{ .ContentType }}{{ if gt .SizeBytes 0 }}, size:{{ .SizeBytes }} bytes{{ end }}){{ else if gt .SizeBytes 0 }} (size:{{ .SizeBytes }} bytes){{ end }}
{{ end }}