summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2020-01-17 16:32:19 +0000
committerDrew DeVault <sir@cmpwn.com>2020-01-20 09:08:38 -0500
commitef029aa26359b6524fc12ccc9f4c43b59d8b8f48 (patch)
treee967fa4f96cf06d7465d286eaa9f2bcd87587f4c
parent472c421e85fafbd2905e785852d04a7c0ab1e60a (diff)
downloadaerc-ef029aa26359b6524fc12ccc9f4c43b59d8b8f48.tar.gz
Display the mimetype when offering to pipe or save
-rw-r--r--widgets/msgviewer.go4
1 files changed, 3 insertions, 1 deletions
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)