]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Mutt requires mailcap
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 4 Jun 2019 12:39:20 +0000 (13:39 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 4 Jun 2019 12:39:20 +0000 (13:39 +0100)
states/mail/init.sls
states/mailcap/files/mailcap [new file with mode: 0644]
states/mailcap/init.sls [new file with mode: 0644]

index 065cb261d7cc9b01176bde229ce79ee6132b558d..f171e67a154148d3bfa23a97e155121828516d1e 100644 (file)
@@ -1,5 +1,6 @@
 include:
   - mail.{{ grains['os'] | lower}}
+  - mailcap
 
 mutt conf files:
   file.recurse:
diff --git a/states/mailcap/files/mailcap b/states/mailcap/files/mailcap
new file mode 100644 (file)
index 0000000..09e97ac
--- /dev/null
@@ -0,0 +1,11 @@
+text/html; qutebrowser %s; nametemplate=%s.html
+text/html; lynx -stdin -dump -force_html ; copiousoutput
+application/pdf; mupdf %s;
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s;
+application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s;
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s;
+application/vnd.oasis.opendocument.spreadsheet; libreoffice %s;
+
+image/png; mupdf %s;
+image/jpg; mupdf %s;
+image/jpeg; mupdf %s;
diff --git a/states/mailcap/init.sls b/states/mailcap/init.sls
new file mode 100644 (file)
index 0000000..3d98dca
--- /dev/null
@@ -0,0 +1,8 @@
+mailcap file:
+  file.managed:
+    - name: {{ grains['homedir'] }}/.mailcap
+    - source: salt://mailcap/files/mailcap
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}
+    - mode: 640
+