From ef029aa26359b6524fc12ccc9f4c43b59d8b8f48 Mon Sep 17 00:00:00 2001 From: Luke Drummond Date: Fri, 17 Jan 2020 16:32:19 +0000 Subject: Display the mimetype when offering to pipe or save --- widgets/msgviewer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 32368ef..0bfd2d8 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -625,7 +625,9 @@ func (pv *PartViewer) Draw(ctx *ui.Context) { // TODO: Let them download it directly or something ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) ctx.Printf(0, 0, tcell.StyleDefault.Foreground(tcell.ColorRed), - "No filter configured for this mimetype") + "No filter configured for this mimetype ('%s/%s')", + pv.part.MIMEType, pv.part.MIMESubType, + ) ctx.Printf(0, 2, tcell.StyleDefault, "You can still :save the message or :pipe it to an external command") pv.selecter.Focus(true) -- cgit 1.4.1-2-gfad0