about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorMarie-Helene Burle <marie.burle@westgrid.ca>2021-06-21 10:43:04 -0700
committerMarie-Helene Burle <marie.burle@westgrid.ca>2021-06-21 10:43:04 -0700
commitca020f8cf13bfa66c48658a14108e0c86598fe88 (patch)
treef04a0ea9228fa05045d21abbb6d42d3e8cf0df6c /ranger
parentbff3c6be9b11f2705de115cd7bfa0053c4f86dc9 (diff)
downloadranger-ca020f8cf13bfa66c48658a14108e0c86598fe88.tar.gz
scope.sh: add mime handling for message/rfc822
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index dd8db89c..e1a336e0 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -282,6 +282,12 @@ handle_mime() {
             pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
             exit 1;;
 
+	## Mails
+	message/rfc822)
+	    ## Parse email with mu: https://github.com/djcb/mu
+	    mu view -- "${FILE_PATH}" && exit 5
+	    exit 1;;
+
         ## XLS
         *ms-excel)
             ## Preview as csv conversion