summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msgviewer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 587959b..6c69577 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -586,7 +586,7 @@ func (pv *PartViewer) attemptCopy() {
 	}
 	go func() {
 		pv.writeMailHeaders()
-		if pv.part.MIMEType == "text" {
+		if strings.EqualFold(pv.part.MIMEType, "text") {
 			// if the content is plain we can strip ansi control chars
 			pv.copySourceToSinkStripAnsi()
 		} else {