about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-06-22 13:39:40 +0200
committertoonn <toonn@toonn.io>2021-06-22 13:39:40 +0200
commitd4db5c618e62cd9c4b94d0ad14e004294b800dc3 (patch)
tree4948cd1443f0a4e215e7000e1c5d6d81c2993b1a /ranger
parentbff3c6be9b11f2705de115cd7bfa0053c4f86dc9 (diff)
parent8b0a8f07624a307d7a576f420e98e11d8ea99571 (diff)
downloadranger-d4db5c618e62cd9c4b94d0ad14e004294b800dc3.tar.gz
Merge branch 'prosoitos-mail'
Diffstat (limited to 'ranger')
-rw-r--r--ranger/data/mime.types2
-rwxr-xr-xranger/data/scope.sh6
2 files changed, 8 insertions, 0 deletions
diff --git a/ranger/data/mime.types b/ranger/data/mime.types
index c0cfdcdb..b8803836 100644
--- a/ranger/data/mime.types
+++ b/ranger/data/mime.types
@@ -29,6 +29,8 @@ audio/x-flac            flac
 image/vnd.djvu          djvu
 image/webp              webp
 
+message/rfc822          eml
+
 text/x-ruby             rb
 
 video/ogg               ogv ogm
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index dd8db89c..0a738a38 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;;
 
+	## E-mails
+	message/rfc822)
+	    ## Parsing performed by mu: https://github.com/djcb/mu
+	    mu view -- "${FILE_PATH}" && exit 5
+	    exit 1;;
+
         ## XLS
         *ms-excel)
             ## Preview as csv conversion